karmada
karmada copied to clipboard
Support karmactl config to modifies kubeconfig files
What would you like to be added: Support karmactl config to modifies kubeconfig files. The specific work items are as follows:
- [ ] karmadactl config current-context
- [ ] karmadactl config use-context
- [ ] karmadactl config get-contexts
- [ ] karmadactl config set/unset
- [ ] karmadactl config set-contexts
- [ ] karmadactl config delete-context
- [ ] karmadactl config view
- [ ] karmadactl config rename-context
Why is this needed:
Referring to https://github.com/karmada-io/karmada/issues/4291#issuecomment-1820489073, each time karmada is installed, the default context is karmada-host
. We need use kubectl to modify the current-context before karmadactl can be used normally. As a result, karmadactl cannot be completely independent and the user experience is fragmented.