Repository navigation
Conversation
|
[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 |
✅ Deploy Preview for olmv1 ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
|
@fgiudici , wdyt about holding off on this until we implement https://redhat.atlassian.net/browse/OPRUN-4747? |
Group-based discovery can include revisions controlled by another owner. Filter revisions by controller owner UID before calculating the retention allowance so those revisions are neither counted nor deleted. Preserve group-based discovery, handoff, revision numbering, and the existing archived-only deletion policy. Keep the existing retention cases in the Apply test table with corrected controller owner references. Add explicit cases for owner identity, mixed revision ordering, and active and deleting revisions. Co-authored-by: Codex <noreply@openai.com> Signed-off-by: Francesco Giudici <fgiudici@redhat.com>
9f202f1 to
47535e4
Compare
Yep, makes sense. I could probably just close this for now. |
|
Added a comment to https://redhat.atlassian.net/browse/OPRUN-4747 to not forget. |
Description
When ClusterObjectSet revisions from different controller owners share a
spec.group, retention counts all of them and can delete archived revisions belonging to another owner. Filter revisions by the current ClusterExtension controller owner UID before calculating the retention allowance.Keep group-based discovery, handoff, and revision numbering, along with the existing archived-only deletion policy. Keep the original retention cases in
TestBoxcutter_Applyinboxcutter_test.go, correcting their controller owner references. Add three explicit cases in the same table for owner exclusion, pruning among mixed owners, and counting active and deleting revisions. Also assert handoff for a foreign-owned revision without an owner label.Validation:
make lintpasses with zero issues.make test-unitpasses.make verifypasses.Reviewer Checklist
Summary by CodeRabbit