From 7273a58f64027b1cd20e344a70f607a74f3ed2ff Mon Sep 17 00:00:00 2001 From: helen Date: Tue, 8 Nov 2022 23:32:43 +0800 Subject: [PATCH] karmadactl uncordon add dryrun Signed-off-by: helen --- pkg/karmadactl/cordon.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/karmadactl/cordon.go b/pkg/karmadactl/cordon.go index a72e32d20..c7f2fe610 100644 --- a/pkg/karmadactl/cordon.go +++ b/pkg/karmadactl/cordon.go @@ -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")