konfig icon indicating copy to clipboard operation
konfig copied to clipboard

Solve merge conflicts on duplicate data

Open fischerman opened this issue 3 years ago • 1 comments

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).

fischerman avatar Jan 13 '21 07:01 fischerman

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.

corneliusweig avatar Jan 24 '21 23:01 corneliusweig