Skip to content

Commit

Permalink
Automate --kubeconfig in kurator CLI to default to kurator-host.config
Browse files Browse the repository at this point in the history
Signed-off-by: LiZhenCheng9527 <lizhencheng6@huawei.com>
  • Loading branch information
LiZhenCheng9527 committed Jan 26, 2024
1 parent 4d616a0 commit 809fbf7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/generic/options.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.")
Expand Down

0 comments on commit 809fbf7

Please sign in to comment.