deinit help fix

Signed-off-by: helen <helenfrank@protonmail.com>
This commit is contained in:
helen 2022-09-20 00:10:47 +08:00
parent 516e09508e
commit 9d9e0ec9e6
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")