karmada icon indicating copy to clipboard operation
karmada copied to clipboard

Support karmactl config to modifies kubeconfig files

Open zhzhuang-zju opened this issue 1 year ago • 10 comments

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.

zhzhuang-zju avatar Nov 21 '23 12:11 zhzhuang-zju