Skip to content

Problem with add and merge #602

@Evantage-WS

Description

@Evantage-WS

Describe the bug
When merging 2 configs or adding a config, the name is not preserved

To Reproduce
I have a cluster
+------------+---------+------------+ .....
|..CURRENT...|....NAME...|...CLUSTER..| .....
+=========+=======+=========+ .....
| ....................|..test-vm..|...test-vm.....| .....

When adding a second config via kubecm add -f /tmp/config or kubecm merge "~/.kube/config" /tmp/config -y the name (context) of the first cluster is changed to config

+------------+---------+------------+ .....
|..CURRENT...|....NAME...|...CLUSTER..| .....
+=========+=======+=========+ .....
| ....................|...config...|...test-vm.....| .....
+------------+---------+------------+ .....
| ....................|..cluster2.|....cluster2....| .....

Expected behavior
It should not rename the cluster config name

Desktop (please complete the following information):

  • OS: MacOS
  • Version Ventura 13.0.1

Thanks!

Metadata

Metadata

Assignees

Labels

questionFurther information is requested

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions