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

Solve merge conflicts on duplicate data #31

Open
fischerman opened this issue Jan 13, 2021 · 1 comment
Open

Solve merge conflicts on duplicate data #31

fischerman opened this issue Jan 13, 2021 · 1 comment

Comments

@fischerman
Copy link

When merging two contexts which reference the same user name (though different users) the resulting kubecfg drops one of those users and the corresponding context can not authenticate.

Suggestion: Detect duplicate user names (i.e. same name but different data) and rename them on import (e.g. to $context-$user).

@corneliusweig
Copy link
Owner

That's an interesting issue. As you know, this script is based on the canonical kubectl config view command. I'm surprised that this does not catch this corner case.
Can you open a bug in the kubernetes repo about this? I think kubectl should catch this.

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

No branches or pull requests

2 participants