Skip to content

Commit

Permalink
Merge pull request kurator-dev#586 from LiZhenCheng9527/cli-kubeconfig
Browse files Browse the repository at this point in the history
Automate --kubeconfig in kurator CLI to default to kurator-host.config
  • Loading branch information
hzxuzhonghu authored Jan 27, 2024
2 parents 702aea8 + 809fbf7 commit 19a94ba
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 19a94ba

Please sign in to comment.