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

Enable --all flag of get-kubeconfig #121

Merged
merged 1 commit into from
Oct 10, 2019
Merged

Enable --all flag of get-kubeconfig #121

merged 1 commit into from
Oct 10, 2019

Conversation

tw3n
Copy link

@tw3n tw3n commented Oct 9, 2019

Enable the --all flag to get the kubeconfig path from all clusters.

Fix: #120

Copy link
Member

@iwilltry42 iwilltry42 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The code looks good to me and is an easy solution 👍
However, we maybe should output the paths concatenated with a :, so you could use export KUBECONFIG="$(bin/k3d get-kubeconfig --all)" and directly have both kubeconfigs configured to switch between their contexts.
What do you think?

EDIT: nevermind, I forgot that it won't work anyway, since contexts are all called the same. We can work on this in the scope of #90 👍

@iwilltry42 iwilltry42 merged commit 5c00056 into k3d-io:master Oct 10, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] get-kubeconfig --all option not taken into account
2 participants