-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
"Plugins load failed!" when no current context #2651
Comments
Happens to me as well, both with and without plugins. It seems to block me from choosing context for ~5 seconds with the following error: "😡 no connection to cached dial". Does not happen with |
Encountering the exact same problem as Emil, on K9s v0.32.4 and K8s v1.29.1. |
I've also been encountering this issue. If I set a context explicitly prior to opening k9s, it's fine but I cannot switch to another context while in k9s without it breaking. |
Another way to reproduce this is:
Not only does this issue prevent you from selecting a context, but is also the cause of another long standing issue I've had that We don't want to set a context (
We thenhave a standalone config file per cluster, joined together in
This all works 100% fine with Also tested by wiping out Here's the full logs (
|
i have this issue too |
I got around my issue by specifying the context's namespace I had access to in my kube-config. I was not allowed to see all namespaces, but limiting it to a specific solved it. |
when we have mutiple cluster, we couldnt limit to specific namespace |
When loading plugins, skip loading context-aware configurations if there is no current context (i.e. when `current-context` in the kubeconfig is empty).
The issue seems to be at the point where k9s tries to load plugins based on the context when said context is empty. I gave a PR a shot by just ignoring the loading of plugins from the context-based directory if the context comes empty. |
Describe the bug
When starting
k9s
without a current context set, there's an error telling me that Plugins load failed!. But when having a current context set, or specifying the --context flag when starting k9s, it works as expected. I have no plugins.To Reproduce
Historical Documents
k9s logs:
Expected behavior
I'll end up in the k9s context meny with no error.
Versions (please complete the following information):
The text was updated successfully, but these errors were encountered: