kubel--can-get-namespace: Avoid spurious warning #44
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
/kubectl
v1.19.4
andkubel
, I couldn't understand why no namespaces were listed, askubel-use-namespace-list
was set toauto
andkubectl --context minikube auth can-i list namespaces
did returnyes\n
in its stdout after all.By using
--all-namespaces
, this warning disappears while still allowingkubel--can-get-namespace
to fail on other kubectl stderr warnings.This pull request does not address the separate issue of
kubectl get namespaces
not working even afterkubectl can-i
returnedyes\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!