-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
Flag to disable Leader Election Feature on Nginx Controller #11064
Flag to disable Leader Election Feature on Nginx Controller #11064
Conversation
|
Welcome @msfidelis! |
Hi @msfidelis. Thanks for your PR. I'm waiting for a kubernetes member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. 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. |
✅ Deploy Preview for kubernetes-ingress-nginx canceled.
|
/check-cla |
Please add an e2e test with the leader election set to false. Also, I like the idea of making that configurable as well, the leader election TTL. Can you add that and make the default 30 seconds? ingress-nginx/internal/ingress/controller/status.go Lines 117 to 124 in c85765a
|
/triage accepted |
/triage accepted |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
some comment, overall looks good
test/e2e-image/namespace-overlays/disable-leader-election/values.yaml
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same
test/e2e-image/namespace-overlays/disableleaderelection/values.yaml
Outdated
Show resolved
Hide resolved
Ok, so:
Other than the points above, I think it is already fine to move. @strongjz I would just avoid cherry-picking this as it is not a bug, but a feature /approve Will wait for some other reviewers + the fixes I've asked before lgtm'ing and unholding |
That's fine for a follow-up. Do we still want it to be a positive config option? I'm on mobile right now so idk why helm docs is upset. |
helm doc needs to be updated
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
also need to fix the lint
[lint: test/e2e/disableleaderelection/disable_leader.go#L28](https://github.com/kubernetes/ingress-nginx/pull/11064/files#annotation_18883045317)
var `cfgOK` is unused (unused)
Hello @strongjz ! Thank you for your attention and for the review. I think these suggestions would be very interesting. What you thing if I submitted these new TTL feature for Leader Election in a smaller and more focused PR?
|
test/e2e-image/namespace-overlays/disableleaderelection/values.yaml
Outdated
Show resolved
Hide resolved
aaf9949
to
16afa03
Compare
/lgtm @msfidelis thank you very much for your contribution |
i was about to do the same 😂 /honk |
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. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks for this PR
/lgtm
/unhold
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: cpanato, msfidelis, rikatz The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
What this PR does / why we need it:
Types of changes
Which issue/s this PR fixes
fixes #8919
How Has This Been Tested?
Checklist: