-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Context Switch unreliable/not working #2446
Comments
Same for me, but I use windows & PowerShell 7.4.0: OS: Windows 11 Enterprise 22H2 (22621.2861) |
@jhuspek Tx for the report! I could not repro this at the ranch using v0.31.1. I did however find an issue if you select the current context while in ctx view. It should nav to the pod view but doesn't. |
I can still repro this with the Env Details:
@derailed
1st, 2nd, 3rd,
If there's some more info I can give (like logs, etc.), let me know. |
@ginomempin Thank you for the details! Of course none of these repro in my env as it works as expected ;( |
I've got the error, when there is no context set.
|
Thanks for re-opening.
I found something in the
The full context name is supposed to be "my-cluster-Gino Mempin-my-namespace". Just to be sure, I re-installed v0.29.1, and sure enough I don't get any of those ERR logs on that version.
I'm not using any context-specific config.yaml. |
I think that's it. The behavior did not change for me as well, even with 0.31.4. But I remembered that my context names do have whitespaces in them, too. So I changed them and now it seems to work. I did not think of it since it was working as expected with the 0.2x versions. |
@flamadrid-jsmdg I think v0.31.4 fixed this issue? @ginomempin Thanks for the details! Which platform are you using? did not occur to me that contexts can have spaces?? Anyhow still works for me here at the ranch on macOS?? You should still be able to change your kubeconfig and edit the spaces (as @mj-jackson mentioned) and see if you are happier?? If so we have a bug ;( |
@derailed Unfortunately not, if there a context set, yes, k9s starts up fine. But if no context is set, like when running
|
It's an in-house K8s cluster, not any of the public platforms.
Yeah, it seems I can do that. |
I edited my Thanks for responding and checking. |
Fixed v0.31.5 |
* [Bug] Fix derailed#2428 * fix derailed#2446 * fix derailed#2449 * schemas updates * Add debug info * v0.31.2 rel notes
* [Bug] Fix derailed#2428 * fix derailed#2446 * fix derailed#2449 * schemas updates * Add debug info * v0.31.2 rel notes
The same issue for me on 0.32.4 -> not able to swtich ctx. P.S. just open the file ~/.kube/config go to |
Describe the bug
After upgrading to 0.30.x / 0.31.x switching contexts via
:ctx
is very unreliable. Sometimes it works, but most often it will get stuck. Autorefresh is no longer working and the only option available is to quit, set context manually viakubectl
and startk9s
again.I am working on macOS, cannot test if other OSs are affected as well.
To Reproduce
Steps to reproduce the behavior:
:ctx
to show configured contexts:pods
to show podsExpected behavior
In versions 0.2x.x while selecting a different context put you back to the last view used, meaning: Navigating from
:pods
to:ctx
, selecting a context would select the context and automatically set you back to:pods
. This is the expected behavior.Versions (please complete the following information):
Additional context
When selecting the new context, the marker
(*)
does not update in the info area at the top. Other information, eg. Context, Cluster, is updated, but "CPU" and "MEM" freezes at current value or falls to 0% and does not update anymore.I install via homebrew, deleting the config folder
/Users/my_user/Library/Application Support/k9s
completely and reinstalling did not work.The text was updated successfully, but these errors were encountered: