From 631b719bbd40a967f35ebcd689f264475577de55 Mon Sep 17 00:00:00 2001 From: Hongcai Ren Date: Tue, 8 Dec 2020 17:07:25 +0800 Subject: [PATCH] rename --kubeconfig-path with --kubeconfig (#65) --- pkg/karmadactl/options/global.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/karmadactl/options/global.go b/pkg/karmadactl/options/global.go index bb2764cb0..a3a0ab0b0 100644 --- a/pkg/karmadactl/options/global.go +++ b/pkg/karmadactl/options/global.go @@ -24,7 +24,7 @@ type GlobalCommandOptions struct { // AddFlags adds flags to the specified FlagSet. func (o *GlobalCommandOptions) AddFlags(flags *pflag.FlagSet) { - flags.StringVar(&o.KubeConfig, "kubeconfig-path", "", "Path to the control plane KUBECONFIG file.") + flags.StringVar(&o.KubeConfig, "kubeconfig", "", "Path to the control plane KUBECONFIG file.") flags.StringVar(&o.ClusterContext, "cluster-context", "", "Name of the cluster context in control plane KUBECONFIG file.") flags.StringVar(&o.ClusterNamespace, "cluster-namespace", DefaultKarmadaClusterNamespace, "Namespace in the control plane where member cluster are stored.") flags.BoolVar(&o.DryRun, "dry-run", false, "Run the command in dry-run mode, without making any server requests.")