Skip to content

Fix webhook certificate regeneration on Helm upgrades - #4581

Merged
k8s-ci-robot merged 1 commit into
kubernetes-sigs:mainfrom
shraddhabang:tlsCertFix
Feb 14, 2026
Merged

Fix webhook certificate regeneration on Helm upgrades#4581
k8s-ci-robot merged 1 commit into
kubernetes-sigs:mainfrom
shraddhabang:tlsCertFix

Conversation

@shraddhabang

@shraddhabang shraddhabang commented Feb 12, 2026

Copy link
Copy Markdown
Collaborator

Issue

Description

In AWS Load Balancer Controller v3.0.0+, webhook TLS certificates are regenerated on every Helm upgrade, causing webhook verification failures and deployment issues. Users experience TLS verification errors and can cause temporary service disruption during upgrades until the new cert is generated.

Root Cause

The keepTLSSecret parameter and associated certificate reuse logic were removed in v3.0.0 to resolve conflicts with cert-manager (#4348). However, this introduced a regression where certificates are always regenerated during Helm upgrades, even when cert-manager is not being used.

Timeline:

  • v2.15.x - v2.17.x: keepTLSSecret defaulted to true (unintended but worked)
  • v3.0.0+: keepTLSSecret parameter completely removed β†’ always regenerate certificates

Reintroduce the keepTLSSecret parameter with improved logic that maintains cert-manager compatibility. The default value of this flag is false as it was originally intended.

Checklist

  • Added tests that cover your change (if possible)
  • Added/modified documentation as required (such as the README.md, or the docs directory)
  • Manually tested
  • 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?! 🀯

  • Backfilled missing tests for code in same general area πŸŽ‰
  • Refactored something and made the world a better place 🌟

@k8s-ci-robot k8s-ci-robot added approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Feb 12, 2026
@shraddhabang

Copy link
Copy Markdown
Collaborator Author

/retest

@wweiwei-li

Copy link
Copy Markdown
Collaborator

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Feb 13, 2026
@k8s-ci-robot

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: shraddhabang, wweiwei-li, zac-nixon

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:
  • OWNERS [shraddhabang,wweiwei-li,zac-nixon]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@wweiwei-li

Copy link
Copy Markdown
Collaborator

/lgtm
/approved

@k8s-ci-robot
k8s-ci-robot merged commit fe7767f into kubernetes-sigs:main Feb 14, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants