-
Notifications
You must be signed in to change notification settings - Fork 6
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
cloudctl login prints misleading error message if KUBECONFIG env-variable contains more than one filepath #79
Comments
We struggled with this non-helpful error message as well. Without this GH issue (which connects the error message with KUBECONFIG) we would not have found the cause. Btw. for troubleshooting (e.g. via |
As we do not have a simple solution for this specific use-case, we strongly recommend using different KUBECONFIG env settings depending on your needs. You could also have a look at the new |
Ok, a brute-force approach to detect this use-case would be implementing in authContext, err := api.GetAuthContext(viper.GetString("kubeconfig"))
if err != nil {
return err
} |
As I guess most users already set something like |
Just curious, is the envvar |
Currently
cloudctl login
does not print a helpful error message if the KUBECONFIG env-variable contains more than one filepath.Steps to reproduce:
The 'whoami'-command already prints a helpful error message. I would suggest to print this error message on the login command, too.
The text was updated successfully, but these errors were encountered: