kubel--can-get-namespace: Avoid spurious warning#44
kubel--can-get-namespace: Avoid spurious warning#44akanouras wants to merge 1 commit intoabrochard:masterfrom
Conversation
|
Hi, thank you very much for submitting this. I am not 100% on top of the namespace story here and I would need to do some research to understand what's going on. Would you be able to explain or point me to a resource that could explain why |
|
@akanouras @abrochard Also facing the same issue. Fixed it on my local by replacing Using |
|
@p4v4n thank you for chiming in there. My design goal here is to have 3 possible values for It's for that reason that I want to understand a bit more what |
|
@abrochard Regarding |
Hello and thank you for your work!
The resolution of issue #38 did not help me as a new user - being a K8S newbie and having just installed
minikube/kubectlv1.19.4andkubel, I couldn't understand why no namespaces were listed, askubel-use-namespace-listwas set toautoandkubectl --context minikube auth can-i list namespacesdid returnyes\nin its stdout after all.By using
--all-namespaces, this warning disappears while still allowingkubel--can-get-namespaceto fail on other kubectl stderr warnings.This pull request does not address the separate issue of
kubectl get namespacesnot working even afterkubectl can-ireturnedyes\n, but I think it does increase the chances of the user getting a namespace list out of the box.Feel free to reject in any case!