Skip to content
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

feat: --strategy flag for context switching #70

Open
mircea-pavel-anton opened this issue Oct 22, 2024 · 0 comments
Open

feat: --strategy flag for context switching #70

mircea-pavel-anton opened this issue Oct 22, 2024 · 0 comments
Assignees

Comments

@mircea-pavel-anton
Copy link
Collaborator

mircea-pavel-anton commented Oct 22, 2024

If strategy is set to merge, create a big kubeconfig with all the contexts defined in all kubeconfig files and set active context.

If strategy is set to copy, just copy over the one kubeconfig file with the wanted context and set active context.

This way, with the merge strategy (which can be the default?), things like passing --context to kubectl commands or selecting contexts in k9s would still work

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant