[
https://issues.apache.org/jira/browse/YUNIKORN-1277?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Wilfred Spiegelenburg resolved YUNIKORN-1277.
---------------------------------------------
Fix Version/s: 1.1.0
Resolution: Fixed
nice cleanup,
committed the change
> Simplify command line processing code
> -------------------------------------
>
> Key: YUNIKORN-1277
> URL: https://issues.apache.org/jira/browse/YUNIKORN-1277
> Project: Apache YuniKorn
> Issue Type: Improvement
> Components: shim - kubernetes
> Reporter: Peter Bacsko
> Assignee: Peter Bacsko
> Priority: Major
> Labels: pull-request-available
> Fix For: 1.1.0
>
>
> Currently, we parse flags (cmd line args) like this:
> {noformat}
> kubeConfig := flag.String("kubeConfig", "",
> "absolute path to the kubeconfig file")
> {noformat}
> but there's a simpler version without the need of an extra variable:
> {noformat}
> conf := &SchedulerConf{
> SchedulerName: constants.SchedulerName,
> }
> flag.StringVar(&conf.KubeConfig, "kubeConfig", "",
> "absolute path to the kubeconfig file")
> ...
> {noformat}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]