-
Notifications
You must be signed in to change notification settings - Fork 539
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Anything similar to Golang clientcmd ModifyConfig? #340
Comments
Not currently. Can you describe your use case in more detail? Do you want to modify and then save to file a kubeconfig? |
yes, ideally, i hope it could be same as Golang clientcmd ModifyConfig.
…On Fri, Sep 13, 2019, 3:59 PM Brendan Burns ***@***.***> wrote:
Not currently. Can you describe your use case in more detail? Do you want
to modify and then save to file a kubeconfig?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#340?email_source=notifications&email_token=ADEI5D6R4JBFOQEAAJUHFATQJQLOZA5CNFSM4IWMVKXKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD6WMI3Q#issuecomment-531416174>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ADEI5DZCCMQY7ZP2TD2EDGTQJQLOZANCNFSM4IWMVKXA>
.
|
For future reference, code is here: Hrm. Why not just modify the config object in Javascript and then export to YAML? That function seems super twisty and it's not exactly clear to me why its useful. Can you describe your use case in more detail? Thanks |
That is exactly what it did. It is very true that function is super twisty with some rules. I just want to keep consistent with that official rule to modify the config file, in case some specific rule would be broken. But looks like that is not easy. What I do now is just modifying only one file in the order |
That seems reasonable for now. I'll leave this issue open, but I don't expect we'll implement this in the near term. |
If I really understand how tokens refreshing is implemented, new fetched tokens (at least for oidc) are not stored in |
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
Token persistence is tricky, because it is potentially racy between multiple different clients running on the same machine. I'd prefer that people handle it themselves in their application code rather than this library accidentally corrupting someone's kubeconfig. |
/lifecycle frozen |
It looks like currently, we could only read the config file, is there any method like Golang clientcmd ModifyConfig so that we could modify the config file?
The text was updated successfully, but these errors were encountered: