Repository navigation
Remove issuer owner reference from challenges - #8743
cert-manager-prow[bot] merged 1 commit into
Conversation
|
/test pull-cert-manager-master-make-test |
Signed-off-by: Erik Godding Boye <[email protected]>
375bcc1 to
0a75439
Compare
|
/cherrypick release-1.20 |
|
@erikgb: once the present PR merges, I will cherry-pick it on top of DetailsIn response to this:
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. |
There was a problem hiding this comment.
Pull request overview
Reverts the Challenge Issuer/ClusterIssuer ownerReference that was introduced to improve finalization behavior, because it prevents Kubernetes garbage collection of Challenges when their owning Order is deleted.
Changes:
- Remove the Issuer/ClusterIssuer
OwnerReferencefrom newly createdChallengeobjects. - Drop now-unused GVK variables and the
k8s.io/utils/ptrimport used to setBlockOwnerDeletion.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| Name: chName, | ||
| Namespace: o.Namespace, | ||
| OwnerReferences: []metav1.OwnerReference{ | ||
| *metav1.NewControllerRef(o, orderGvk), | ||
| issuerOwnerRef, | ||
| }, | ||
| }, |
There was a problem hiding this comment.
This change removes the Issuer/ClusterIssuer OwnerReference from Challenges, but there’s no regression test asserting the generated Challenge has only the Order controller OwnerReference. Adding a focused unit test (e.g., for buildPartialChallenge) would prevent accidentally reintroducing the Issuer ownerRef and bringing back the GC issue.
There was a problem hiding this comment.
As this change is a revert and going to be cherry-picked into a release branch, I propose to keep the change as minimal as possible.
SgtCoDFish
left a comment
There was a problem hiding this comment.
/lgtm
/approve
/hold
The review comment doesn't seem a huge problem - this is a revert, not a net-new feature - but I'll add a hold if you want to add a regression test. Happy to merge either way!
inteon
left a comment
There was a problem hiding this comment.
/approve
/lgtm
/hold in case you want to still change something
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: inteon, SgtCoDFish The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
/unhold |
|
@erikgb: new pull request created: #8759 DetailsIn response to this:
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 fix or feature is now available for testing Please test and report back. |
Pull Request Motivation
This PR reverts a change done as part of #7286, which added an owner reference to the issuer on challenges. This new owner reference blocks challenges from being garbage collected by Kubernetes when the order is deleted. And as described in #8737 (comment), this doesn't guarantee what we were trying to achieve in #7286: to keep the issuer around until all challenges are finalized.
I will create a new issue to track how we can fix the challenge finalization issue.
Fixes #8737
Kind
/kind bug
Release Note