-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
kubectx errors with Ubound Variable #322
Comments
There's a very decent chance your bash version has updated to a newer version that broke something. To unblock yourself, go to Releases tab and download the binary version of kubectx implemented in Go. |
Last call to provide s repro with DEBUG=1. |
Thank you for the reminder, apologies for the delay, I had missed the original notification. I will grab latest and try to reproduce again tonight with DEBUG=1. |
Output with DEBUG=1:
Running on I grabbed the binary version from the release and that does indeed work for me, so I'll just pop that in my path. If you'd like me to try anything else, I'm happy to assist - but this workaround fixes all my issues so we can close this out if it's a niche edge case / environment-specific issue not affecting anyone else. |
I assume kubectx is running in bash (despite you launch it from zsh) so I may need your |
Apologies for the delay. Bash version info below:
|
Whenever I run
kubectx
I get the error message in the output:/usr/local/bin/kubectx: line 250: $@: unbound variable
.I assume this is a reference to
kubectx/kubectx
Line 250 in 3504e66
I'm on MacOS (amd64 intel CPU).
kubectx version 0.9.4, installed via brew. Tried reinstalling, no difference.
Happens in both Bash and zsh.
FWIW,
kubens
also errors - with/usr/local/bin/kubens: line 226: $@: unbound variable
Any idea what might I might be missing in my env?
Edit: I should also add that
kubectx some-context
actually works fine, it's just the barekubectx
which should list all contexts which is failing for me.The text was updated successfully, but these errors were encountered: