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

Handle read errors when importing kubeconfig #27

Merged
merged 1 commit into from
Nov 7, 2020

Conversation

corneliusweig
Copy link
Owner

Importing a config into the current kubeconfig can fail if the imported
config is not readable. This used to truncate the kubeconfig .. oops!
Now the original kubeconfig is always restored on errors after entering
the critical section.

Fix #26

Importing a config into the current kubeconfig can fail if the imported
config is not readable. This used to truncate the kubeconfig .. oops!
Now the original kubeconfig is always restored on errors after entering
the critical section.

Signed-off-by: Cornelius Weig <22861411+corneliusweig@users.noreply.github.com>
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.

Importing a config from a file without permission causes loss of ~/.kube/config content
1 participant