Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Align Flag Names with Kubernetes Components #3924

Closed
christopherhein opened this issue Nov 19, 2020 · 7 comments · Fixed by #3934
Closed

Align Flag Names with Kubernetes Components #3924

christopherhein opened this issue Nov 19, 2020 · 7 comments · Fixed by #3934
Assignees
Labels
help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines. kind/feature Categorizes issue or PR as related to a new feature. priority/important-soon Must be staffed and worked on either currently, or very soon, ideally in time for the next release.
Milestone

Comments

@christopherhein
Copy link
Member

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 kubernetes-sigs/kubebuilder#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

@k8s-ci-robot k8s-ci-robot added the kind/feature Categorizes issue or PR as related to a new feature. label Nov 19, 2020
@vincepri
Copy link
Member

/milestone v0.4.0
/priority important-soon
/help

@k8s-ci-robot
Copy link
Contributor

@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.

@k8s-ci-robot k8s-ci-robot added this to the v0.4.0 milestone Nov 19, 2020
@k8s-ci-robot k8s-ci-robot added priority/important-soon Must be staffed and worked on either currently, or very soon, ideally in time for the next release. help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines. labels Nov 19, 2020
@vincepri
Copy link
Member

@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

@srm09
Copy link
Contributor

srm09 commented Nov 19, 2020

/assign

@wfernandes
Copy link
Contributor

@srm09 are you working on this? else I can do it.

@srm09
Copy link
Contributor

srm09 commented Nov 19, 2020

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.

@wfernandes
Copy link
Contributor

Go for it...I can look around for other things 🙂

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines. kind/feature Categorizes issue or PR as related to a new feature. priority/important-soon Must be staffed and worked on either currently, or very soon, ideally in time for the next release.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants