-
Notifications
You must be signed in to change notification settings - Fork 23
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
Using $KUBECONFIG with several files, logging into the cluster dumps all contexts into the default config file #966
Comments
This is caused by calling
Why all the existing contexts are dumped into this file is beyond me currently |
intellij-openshift-connector/src/main/java/org/jboss/tools/intellij/openshift/utils/oc/OcCli.java Lines 62 to 68 in 2474d44
As a workaround, we could
oc login <cluster-url> --kubeconfig=<new file> --token=<token> --insecure-skip-tls-verify or oc login <cluster-url> --kubeconfig=<new file> -u=<username> -p=<password> --insecure-skip-tls-verify I would think that the contexts that exist in With a new file, we have the following problem though: the new file is not in the env. We can add it to the running system but there's no way for us to persist it. @sbouchet, @msivasubramaniaan, @vrubezhny: thoughts? |
On github, this issue was filed at openshift/oc#283 |
…exts (redhat-developer#966) Signed-off-by: Andre Dietisheim <[email protected]>
…exts (redhat-developer#966) Signed-off-by: Andre Dietisheim <[email protected]>
…exts (redhat-developer#966) Signed-off-by: Andre Dietisheim <[email protected]>
…exts (redhat-developer#966) Signed-off-by: Andre Dietisheim <[email protected]>
…exts (redhat-developer#966) Signed-off-by: Andre Dietisheim <[email protected]>
…exts (redhat-developer#966) Signed-off-by: Andre Dietisheim <[email protected]>
…t-developer#966) Signed-off-by: Andre Dietisheim <[email protected]>
Steps:
$KUBECONFIG
~/.kube/config
Result:
~/.kube/config
was altered. All the above contexts were dumped into it. Interestingly, Only the context were dumped. Neiter the users, nor clusters were. Additionally a new context was created for the cluster using the url that was listed in the dialog.The text was updated successfully, but these errors were encountered: