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

Add --save to kubectl k8s config #20

Closed
andyjeffries opened this issue Jul 12, 2019 · 0 comments · Fixed by #24
Closed

Add --save to kubectl k8s config #20

andyjeffries opened this issue Jul 12, 2019 · 0 comments · Fixed by #24

Comments

@andyjeffries
Copy link
Contributor

Add a --save option to kubectl k8s config which will merge the downloaded configuration with their existing ~/.kube/config file.

This relies on them already having kubectl installed and is a simple matter of shelling out like this:

KUBECONFIG=~/.kube/this-config:~/.kube/other-config \
  kubectl config view --flatten > ~/.kube/config

Of course if no ~/.kube/config file exists, simply create the folder and file.

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 a pull request may close this issue.

1 participant