User Story
As an operator, I would like to use the same flags as upstream kubernetes components use so that there is better cohesion between the many things we deploy into Kubernetes.
Detailed Description
In main.go we have a handful of flags which slightly differ from Kubernetes standard flags like leader-election vs leader-elect in Kubebuilder we're switching those to align more closely, see https://github.com/kubernetes-sigs/kubebuilder/pull/1852 In CAPI's main.go we have https://github.com/kubernetes-sigs/cluster-api/blob/master/main.go#L86-L99
This would change those to be:
fs.StringVar(&metricsAddr, "metrics-bind-addr", ":8080",
"The address the metric endpoint binds to.")
fs.BoolVar(&enableLeaderElection, "leader-elect", false,
"Enable leader election for controller manager. Enabling this will ensure there is only one active controller manager.")
fs.DurationVar(&leaderElectionLeaseDuration, "leader-elect-lease-duration", 15*time.Second,
"Interval at which non-leader candidates will wait to force acquire leadership (duration string)")
fs.DurationVar(&leaderElectionRenewDeadline, "leader-elect-renew-deadline", 10*time.Second,
"Duration that the leading controller manager will retry refreshing leadership before giving up (duration string)")
fs.DurationVar(&leaderElectionRetryPeriod, "leader-elect-retry-period", 2*time.Second,
"Duration the LeaderElector clients should wait between tries of actions (duration string)")
/kind feature
/milestone v0.4.0
/priority important-soon
/help
@vincepri:
This request has been marked as needing help from a contributor.
Please ensure the request meets the requirements listed here.
If this request no longer meets these requirements, the label can be removed
by commenting with the /remove-help command.
In response to this:
/milestone v0.4.0
/priority important-soon
/help
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.
@srm09 If you're looking for more work to do, this is a good breaking change
also cc @wfernandes to align these flags with the operator work
/assign
@srm09 are you working on this? else I can do it.
I'd be happy to work on it, but I will get it to it by tomorrow. If you are blocked elsewhere, then you can pick it up today.
Go for it...I can look around for other things 馃檪
Most helpful comment
Go for it...I can look around for other things 馃檪