Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
Description
Currently, we parse flags (cmd line args) like this:
kubeConfig := flag.String("kubeConfig", "", "absolute path to the kubeconfig file")
but there's a simpler version without the need of an extra variable:
conf := &SchedulerConf{ SchedulerName: constants.SchedulerName, } flag.StringVar(&conf.KubeConfig, "kubeConfig", "", "absolute path to the kubeconfig file") ...
Attachments
Issue Links
- links to