-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
feat: make LeaseDuration configurable via --leader-election-lease-duration
flag
#3835
base: main
Are you sure you want to change the base?
Conversation
Signed-off-by: gjbravi <guilhermejbravi@gmail.com>
Signed-off-by: gjbravi <guilhermejbravi@gmail.com>
Signed-off-by: gjbravi <guilhermejbravi@gmail.com>
Welcome @gjbravi! |
Hi @gjbravi. Thanks for your PR. I'm waiting for a kubernetes-sigs 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-sigs/prow repository. |
The AWS LB controller chart version from eks-charts repo points to https://github.com/aws/eks-charts/blob/master/stable/aws-load-balancer-controller/Chart.yaml#L4 While, here is still on
I would really appreciate some guidance on how the chart bump should be made. Ty |
/ok-to-test |
/lgtm |
Signed-off-by: gjbravi <guilhermejbravi@gmail.com>
@shraddhabang thanks for reviewing! I've also submitted the chart bump on f8c0943 alongside all changes made and the PR labels were removed. Could you please re-check it? Ty |
@gjbravi, thanks for the contribution, I left some minor comments, overal LGTM |
/lgtm |
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: gjbravi, shraddhabang The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
@shraddhabang the approved label is missing (maybe should be "/approved" ?), could you help us to make this PR mergeable? |
@gjbravi, hi sorry for the late response. I have a concern over the specified default duration as 15s, I think it may cause backward compatibility, especially for users who might already specify the duration in their setup. A better option is that we make this flag an opt-in, with no default value, and if it's not specify, the controller should just behave as-is now, this could mitigate the risk to change existing user behavior. Thanks. |
@oliviassss tks for reviewing. The current behavior should be equal to the default value brought by controller-runtime as far as I see. Implying that, if not specified in the values file, it will take the default value of 15 seconds. During the implementation, I've also tested setting a "null" value to the const, however the time pkg does not allow that, forcing me to specify a value(same as the implementation of SyncPeriod). I can perhaps be missing something here, please let me know in case another solution is also viable here. Tks |
Issue
resolves #3823
Description
This PR adds a new flag to the controller,
--leader-election-lease-duration
will be responsible for externalizing and controlling theLeaseDuration
of aLease
owned by aws-load-balancer-controller.--leader-election-lease-duration
defaults to 15s if not informed, matching the default value of aLeaseDuration
from controller-runtime.Checklist
README.md
, or thedocs
directory)BONUS POINTS checklist: complete for good vibes and maybe prizes?! 🤯