-
Notifications
You must be signed in to change notification settings - Fork 9
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
kubie integration or ability to have isolated context #528
Comments
Yeah I would love to have per session as well, there sort of already is since we use the kubectl proxy that persists the connection even if you would change the context (you can test it out using multiple nvim instances). |
@mosheavni, @jemag If we make that change (to not actually change the context but instead always use that proxy), we should probably make it possible to persist that change some how, do you have any ideas how to make that UX wise? |
most plugins seem to use I assume that the persisting would mean once a user change context within one kubectl.nvim instance, further newly created kubectl.nvim instances would use that same context? |
I agree here, we already save the current session, history and other things in that place so we could add last_context as well to keep track of it and avoid actually changing the default context and instead using the There is no real problem implementation wise but rather UX wise. Do we want to offer a way to change the default context? |
I dont find it particularly confusing since I am used to that workflow, but that could indeed be the case for existing users. Perhaps this behavior could simply be configured through an option? (i.e.: retain current behavior or have isolated context) |
Maybe a combination of configuration and a toggle, the configuration could set the default value of the toggle? #Configuration would be
And then in the change context view we would have a way to change that for just that change, it's mostly that I feel that just having a configuration and force people to restart nvim might be annoying |
sounds good to me |
Just a FYI, I've written a tool that is similar to PS. this is mostly to buy me some time to solve this issue :D |
Is your feature request related to a problem? Please describe.
Currently changing the context within
kubectl.nvim
will change the overall context for kubectl.Describe the solution you'd like
I would like to be able to isolate the context change to only happen within
kubectl.nvim
. This could be done through an integration with kubie or with its own setup.I often keep my
kubectl
cli on a specific sandbox cluster, while usingkubectl.nvim
to explore and debug other clusters. However, currently my "default" cluster will continuously change due to context changes withinkubectl.nvim
.Describe alternatives you've considered
Load kubie in a specific cluster before opening kubectl.nvim. However this has the problem that only this specific cluster will be available in kubectl.nvim context, so cannot easily change afterwards.
Additional context
The text was updated successfully, but these errors were encountered: