aws-load-balancer-controller
aws-load-balancer-controller copied to clipboard
feat: make LeaseDuration configurable via `--leader-election-lease-duration` flag
Issue
resolves https://github.com/kubernetes-sigs/aws-load-balancer-controller/issues/3823
Description
This PR adds a new flag to the controller, --leader-election-lease-duration will be responsible for externalizing and controlling the LeaseDuration of a Lease owned by aws-load-balancer-controller.
--leader-election-lease-duration defaults to 15s if not informed, matching the default value of a LeaseDuration from controller-runtime.
Checklist
- [ ] Added tests that cover your change (if possible)
- [x] Added/modified documentation as required (such as the
README.md, or thedocsdirectory) - [x] Manually tested
- [x] Made sure the title of the PR is a good description that can go into the release notes
BONUS POINTS checklist: complete for good vibes and maybe prizes?! :exploding_head:
- [ ] Backfilled missing tests for code in same general area :tada:
- [ ] Refactored something and made the world a better place :star2: