-
-
Notifications
You must be signed in to change notification settings - Fork 103
Description
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!