-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
support/warn if KUBECONFIG has multiple paths #8946
Comments
@iocanel are there any utilities in the Kubernetes Client that deal with this or should we just roll something up in Quarkus? |
No, this is a limitation of the client and needs to be fixed there I am afraid. |
Are you going to take care of it, or should we engadge the DevTools folks? |
Let's ask Rohan or Marc if the can take care of it. |
@rohanKanojia can you take a look please? |
We will take care of it. Thanks for letting us know |
Great, thanks |
What would the preferred behavior be? As of now I see a couple of corner cases to "read the working KUBECONFIG":
Maybe pick the first one and show a WARNING like "Detected several configurations in KUBECONFIG environment variable, using ${firstConfiguration}" |
I think that is a reasonable way to move forward. Also perhaps a message on how users can get rid of the multiple configurations would be nice. |
We just released https://github.com/fabric8io/kubernetes-client/releases/tag/v4.10.0 Warning should be visible in this new version. |
Excellent! |
Closing as the client already addressed this issue |
Describe the bug
when having KUBECONFIG like:
kubernetes client related operations fails siliently and you get "Unknown host kubernetes.default.svc: nodename nor servname provided, or not known"
Expected behavior
read the working KUBECONFIG or at least warn.
Actual behavior
The text was updated successfully, but these errors were encountered: