-
Notifications
You must be signed in to change notification settings - Fork 82
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
Context switch is not working - possible clash with same context name value #137
Comments
Try to put the kubeconfigs under different parent filesystem paths (directory).
|
that's not working unfortunately, kubectl shows only one context, while switcher lists two, but it's doesn't matter where I'm navigating with the cursor it shows the same kubeconfig on the right. |
Do you have https://github.com/danielfoehrKn/kubeswitch/blob/master/types/config.go#L116 set to |
Yes, that's true by default. As it turned out this is not working, I even tried to set the default setting here:
The only way, where the different config directories was shown, when I utilized the filesystem kind:
In this case I could see 4 contexts, but 3 had the same preview and 1 was the different one. What I can see now it's not working if you are using the KUBECONFIG with the slimmed down switch-config. Sorry for the late reply |
Hi!
I have some kubeconfigs which has the same context name inside. Even kubectl is not able identify both if these are listed in the KUBECONFIG env variable, like
Is there some other way to identify the kubeconfigs with the context-cluster key?
Unfortunately I couldn't rename the context, because that breaks the functionality of the config.
I experience pretty much the same with kubectx:
ahmetb/kubectx#428
The text was updated successfully, but these errors were encountered: