From 809fbf7312afd6242f28df4c214b8b46f5e6a74e Mon Sep 17 00:00:00 2001 From: LiZhenCheng9527 Date: Fri, 26 Jan 2024 10:29:16 +0800 Subject: [PATCH] Automate --kubeconfig in kurator CLI to default to kurator-host.config Signed-off-by: LiZhenCheng9527 --- pkg/generic/options.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/generic/options.go b/pkg/generic/options.go index 52b52feee..5c6057da7 100644 --- a/pkg/generic/options.go +++ b/pkg/generic/options.go @@ -68,7 +68,7 @@ func (g *Options) AddFlags(fs *pflag.FlagSet) { fs.StringVar(&g.HomeDir, "home-dir", path.Join(homeDir, ".kurator"), "install path, default to $HOME/.kurator") - fs.StringVarP(&g.KubeConfig, "kubeconfig", "c", "/etc/karmada/karmada-apiserver.config", "path to the kubeconfig file, default to karmada apiserver config") + fs.StringVarP(&g.KubeConfig, "kubeconfig", "c", "/root/.kube/kurator-host.config", "path to the kubeconfig file, default to Kurator-host apiservice ") fs.StringVar(&g.KubeContext, "context", "", "name of the kubeconfig context to use") fs.BoolVar(&g.DryRun, "dry-run", false, "console/log output only, make no changes.")