fix(target-allocator): add cert-manager Certificate and Issuer ownership to TargetAllocator controller#4372
fix(target-allocator): add cert-manager Certificate and Issuer ownership to TargetAllocator controller#4372swiatekm merged 11 commits into
Conversation
|
Maintainers: this was a theory pinpointed by |
|
Thank you for the contribution! A simple way to test this in the CI would be to check ownership in this e2e test. Could you also add a changelog entry? |
|
Thanks! Added! (I may not have permission to re-trigger the workflows) |
|
@swiatekm I updated the branch for a (Triggering Certificate renewal by force-renewal annotation) 🤞 |
|
@schahal looks like the e2e tests are failing, can you have a look? |
|
@swiatekm possible to re-trigger the workflows? (i missed passing in the namespace the the kubectl patch cert portion of the test) |
…ator controller The TargetAllocator controller was missing ownership watches for cert-manager Certificate and Issuer resources. This caused certificate renewal issues where: 1. cert-manager would update Certificate resources and recreate Secrets 2. TargetAllocator controller would not be notified of these changes 3. TargetAllocator pods would continue using stale certificate mounts 4. Manual Secret deletion was required to force certificate pickup This fix adds Certificate and Issuer ownership when cert-manager is available and TargetAllocator mTLS is enabled, ensuring the controller gets notified when certificates are updated and can trigger pod restarts as needed. Fixes: Certificate renewal requiring manual Secret deletion
Can you re-trigger the workflows, @swiatekm , please? I have the tests passing locally: |
swiatekm
left a comment
There was a problem hiding this comment.
Thank you for the contribution!
Description:
The TargetAllocator seems to be missing ownership watches for cert-manager
CertificateandIssuerresources [ref].This, I believe, is causing certificate renewal issues where:
CertificateresourcesThis fix adds Certificate and Issuer ownership when cert-manager is available and TargetAllocator mTLS is enabled, ensuring the controller gets notified when certificates are updated and can trigger pod restarts as needed.
Fixes: Certificate renewal requiring manual Secret deletion
Link to tracking Issue(s):
Testing:
Relying on CI.
I confirmed locally that my
Certificateis indeed controller-owned:Documentation:
N/A (fix to existing functionality)