-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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
kubeswitcher.1m.sh: issue with profile or environment variables? Plugin only works if xbar is launched via terminal #1922
Comments
My xbar is started as a standard application. Perhaps even run with |
I @Raboo first of all thanks for the plugin and your response. I didn't add here all the details that you can find -> matryer/xbar#877 but your script seems to be ok if I run it with the terminal: Unfortunately, I don't understand why it did not work when xbar is launched via applications / or started at login (Namespace and Context empty): |
hmm, I don't know why and what would change depending on how you start xbar. Try changing line I noticed I have both /usr/local/bin/kubectl and /opt/homebrew/bin/kubectl on my laptop, would explain why I haven't encountered this problem. |
I've already tried what you mentioned but unfortunately didn't fix the issue 😞 By the way, a colleague has successfully set up xbar with kubeswitcher plugin; everything works out of the box with the following setup: |
Well I have a M1 Pro running on Ventura and 2.1.7-beta. Try changing this
to this
Also are you running kube config (~/.kube/config) in an non-default path (i.e. are you using $KUBECONFIG to configure a different path for your kube config file?)? |
Changing Concerning kube config, I'm using a non-default path indeed:
~ ❯ echo $KUBECONFIG
/Users/miguebru/.kube/sandbox.kubecfg:/Users/miguebru/.kube/dlc-nonprod.kubecfg:/Users/miguebru/.kube/dlc-prod.kubecfg |
I guess you should add |
@sprak3000 I think so, but @brunopereira7 hasn't answered yet. But I think it should. |
Hey guys, definitely it's weird; I've tested with the last version of the script and even added a new menu entry to debug the env As a workaround, I'm simply launching the app via terminal |
#2035 should perhaps close this as it adds ability to inject the KUBECONFIG from the normal bash and zsh places. |
OS: MacOS - Ventura 13.2.1
Processor: Apple M1
xbar version: 2.1.7-beta
plugin: kubeswitcher.1m.sh by Elias Abacioglu (@Raboo on GitHub)
Description: I'm not sure if the issue could be related to xbar itself, or even something that I'm missing, but I'm trying to set up xbar with 'Kubeconfig Namespace & Context Switcher' plugin, and it's not working as expected when xbar is launched via a standard application.
For detailed information see: matryer/xbar#877
FYI: @Raboo
The text was updated successfully, but these errors were encountered: