-
Notifications
You must be signed in to change notification settings - Fork 19
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
Errors when versioner can't reach k8s server #18
Comments
This is a separate problem, and you should file a separate issue for it. |
Sorry, I put the comment in because I wanted to add more suggestions about the failure mode when the cluster is not available, but it looks like kuberlr is just displaying the warning on stderr, but otherwise executes the command just fine. The warning is ugly when you e.g. want to source |
Sure, done 👉 #19 Still, the warning seems out of place for certain commands, such as |
@jandubois: for basic If it really wants to be clever, it can cache the answer for each cluster and... |
I think there are two problems, the first is the stdout pollution with unwanted messages, which is fixed by my PR. The other one is the delay introduced by the timeout. |
I haven't looked in detail at how kubectl and friends do completion, but it's generally the case that one can write completion at levels. This means that generating completion for For kuberlr, that means it can either cache a list of all known kubernetes cluster versions and provide the union of all top level kubectl verbs for all clusters, or it can provide the union of all top level kubectl verbs for some range of versions of kubectl. When someone types:
If one confirms Note that a You can simulate this pain by adding a |
👋 I'm on Apple silicon running macOS Monterey v12.1
I just switched from Docker Desktop to Rancher Desktop which –unless I'm mistaken– ships with
kuberlr
. When runningkubectl
commands while Rancher Desktop is not running and my context is set torancher-desktop
I get the following followed by the output I'd normally expect fromkubectl
:After switching contexts to a GCP cluster in which I'm authenticated, I get the following instead:
Apart from the printed errors, the underlying
kubectl
binary works as expected. After the errors I get the expected output from it.The text was updated successfully, but these errors were encountered: