Repository navigation
[release-1.21] fix: ServerSideApply field loss in certificate-shim and issuing controller - #9233
cert-manager-bot wants to merge 4 commits into
Conversation
- Send full CertificateSpec in SSA Apply() to prevent silent loss of spec fields not in the handpicked set (such as RevisionHistoryLimit) - Strip ManagedFields in serializeApply (matching certificaterequests/apply.go), fixing API server rejection of SSA patches containing metadata.managedFields - Replace test workaround with proper ManagedFields round-trip assertions Signed-off-by: Yuedong Wu <[email protected]>
…ssuing The SSA branch's updateOrApplyStatus was missing FailedIssuanceAttempts from the ApplyStatus payload. The non-SSA UpdateStatus path set all Status fields. The trigger controller reads FailedIssuanceAttempts to calculate issuance retry backoff — without it, retry delays don't work. Signed-off-by: Yuedong Wu <[email protected]>
Create with FieldManager records ownership as operation:Update. Use Apply when ServerSideApply is enabled so create ownership matches updates (operation:Apply). Add create/update Apply payload tests. Signed-off-by: Yuedong Wu <[email protected]>
Add issuing unit test that ApplyStatus includes the field on failure and omits it on success, and an integration test that scalar status fields clear by omission only when solely owned. Signed-off-by: Yuedong Wu <[email protected]>
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
/kind bug with claude fable-5 |
|
Closing this cherry-pick rather than merging it. A post-merge review of #8793 (review comments here) found two regressions that only manifest with the
There's also a migration gap that patch-release users would hit disproportionately: status fields written before the gate was enabled belong to an Plan: fix these on master first, then raise a fresh cherry-pick of #8793 plus the follow-ups as one batch, with a release note covering the behaviour change (a forced apply now reverts hand-edits to annotation-derived spec fields). with claude fable-5 |
This is an automated cherry-pick of #8793
/assign wallrj