Merge pull request #2540 from helen-frank/fix/deinitHelp

`karmadactl`: Fixed options of `deinit` can not be shown issue.
This commit is contained in:
karmada-bot 2022-09-22 10:07:56 +08:00 committed by GitHub
commit 91e4e729f1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -61,7 +61,7 @@ func NewCmdDeInit(parentCommand string) *cobra.Command {
},
}
flags := cmd.PersistentFlags()
flags := cmd.Flags()
flags.StringVarP(&opts.Namespace, "namespace", "n", "karmada-system", "namespace where Karmada components are installed.")
flags.StringVar(&opts.KubeConfig, "kubeconfig", "", "Path to the host cluster kubeconfig file.")
flags.StringVar(&opts.Context, "context", "", "The name of the kubeconfig context to use")