-
Notifications
You must be signed in to change notification settings - Fork 922
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
Request: Support multiple documents in KUBECONFIG #1123
Comments
@robotrapta: This issue is currently awaiting triage. SIG CLI takes a lead on issue triage for this repo, but any Kubernetes member can accept issues by applying the The Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
The Kubernetes project currently lacks enough contributors to adequately respond to all issues and PRs. This bot triages issues and PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle stale |
We've discussed this before in the form of supporting the XDG config spec. If we could do things over from the start we would make these changes but the issue is that now it would cause widespread issues for other tooling in the ecosystem. /close |
@eddiezane: Closing this issue. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
What would you like to be added:
It sure would be handy if I could put multiple YAML documents into my KUBECONFIG file, separated by
---
. Each one should be able to create its own contexts, and the cluster and user references should be scoped to within that document. The context names themselves would have to share a global namespace. If there were name collisions on the context names I think it would just have to throw an error.Why is this needed:
We work with lots of different clusters, dynamically building them for various tasks. Various tools like microk8s and eksctl are happy to generate a complete kubeconfig needed to access the cluster. But merging the kubeconfigs together is error-prone. I've seen many a smart engineer flustered for quite a while because there's a mistake in there caused by not merging them properly.
With this change it would be much easier to merge them because in almost every case you could just append
---
and the generated full kubeconfig from whatever source you got it from, and the only change you'd need to make would be to the name of the context.The text was updated successfully, but these errors were encountered: