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
Controller: Make Leader Election TTL configurable. #11142
Controller: Make Leader Election TTL configurable. #11142
Conversation
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 ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
/ok-to-test |
hum, @Gacko I'm not sure if this is part of the new helm CI. Do you know if we use previously compiled binaries for the test? PR seems fine to me, but still during helm CI it is not recognizing the new flag |
/hold |
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.
Chart CI is failing because it's (probably) referencing the image version set in the values.yaml
, which is v1.10.0 at the moment of writing this. This controller version doesn't know that flag and therefore the container isn't coming up.
To solve that, we would either need to fix the CI so it always uses the image being built right before the tests start or make this particular flag only being set if not null and default it to null or a negative value in the values.yaml
.
Both are not really perfect, but in general I'd like to pretend setting flags on the controller if they are equal to the controller's default value.
I think the Helm CI is no longer sad. I've set the empty value in the values.yaml and assume the default value in the controller. Is that correct? |
You specified the default as empty string, which IMO is not ideal. See my in line comment. Also can we change |
/retitle Controller: Make Leader Election TTL configurable. |
please squash all commits |
/unhold |
2b3a559
to
ba2040e
Compare
Done @cpanato /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. |
docs/user-guide/cli-arguments.md
Outdated
@@ -22,6 +22,7 @@ They are set in the container spec of the `ingress-nginx-controller` Deployment | |||
| `--disable-sync-events` | Disables the creation of 'Sync' Event resources, but still logs them | | |||
| `--dynamic-configuration-retries` | Number of times to retry failed dynamic configuration before failing to sync an ingress. (default 15) | | |||
| `--election-id` | Election id to use for Ingress status updates. (default "ingress-controller-leader") | | |||
| `--election-ttl` | Duration a leader election is valid before it's getting re-elected. (Default: 30s) | |
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.
i think here we need to call out the specific way to set this, otherwise they will not add the correct value, something like
| `--election-ttl` | Duration a leader election is valid before it's getting re-elected. (Default: 30s) | | |
| `--election-ttl` | Duration for a leader election is valid before it's getting re-elected. (Default: 30s). The syntax in X<unit>, with <unit>: s, h, d | |
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.
my last comment, otherwise lgtm
thanks for working on this
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.
thank you!
/approve
/kind feature |
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: cpanato, Gacko, msfidelis, strongjz 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 #11141
How Has This Been Tested?
Checklist: