Merge pull request #2760 from helen-frank/feature/uncordonAddDryrun

karmadactl uncordon add dryrun
This commit is contained in:
karmada-bot 2022-11-09 10:05:54 +08:00 committed by GitHub
commit d7bd490f94
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -99,6 +99,7 @@ func NewCmdUncordon(f util.Factory, parentCommand string) *cobra.Command {
}
flags := cmd.Flags()
flags.BoolVar(&opts.DryRun, "dry-run", false, "Run the command in dry-run mode, without making any server requests.")
flags.StringVar(defaultConfigFlags.KubeConfig, "kubeconfig", *defaultConfigFlags.KubeConfig, "Path to the kubeconfig file to use for CLI requests.")
flags.StringVar(defaultConfigFlags.Context, "karmada-context", *defaultConfigFlags.Context, "The name of the kubeconfig context to use")
flags.StringVarP(defaultConfigFlags.Namespace, "namespace", "n", *defaultConfigFlags.Namespace, "If present, the namespace scope for this CLI request")