-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Proposal: Naming consistency for leader election lock options #2636
Comments
Would we target this for v0.17 or v0.18? Naming would provide clarity if that's the intent and not change any functionality. I agree that being concise may help future users around the unclear options are defined. /kind feature |
This is a breaking change so we'd probably target the next minor version? |
Should this be closed because of the comments in the PR? Are we closing the PR? |
Yeah let's close this. Benefits are minimal. |
@ahmetb: Closing this issue. In response to this:
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. |
This is probably a very minor naming suggestion but when I first started out using controller-runtime, the
LeaderElectionNamespace
option's identifier confused me a bit as to what it does and made me look under the covers to see how it is used.I think clarifying this as follows would address the problem:
If we go through with this, I think changing
LeaderElectionLockID
→LeaderElectionLockName
would be quite useful as well (since ID is not the Kubernetes term for unique resource names).I understand these names have been there since the inception, but since I observed this repo regularly changes Options structs (and this is particularly not a troublesome migration), I'm proposing this. Thoughts?
/kind feature
The text was updated successfully, but these errors were encountered: