HYPERFLEET-1040 - fix: Use label selector to clean up orphaned cluster-scoped RBAC resources#92
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 |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Enterprise Run ID: 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
WalkthroughThe Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
|
/test lint |
…r-scoped RBAC resources The cleanup function was deleting ClusterRole/ClusterRoleBinding by name, which couples it to the chart's naming scheme. Switch to label-based deletion using app.kubernetes.io/instance so the cleanup works correctly regardless of how the chart names these resources. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This is related to changes here: openshift-hyperfleet/hyperfleet-adapter#112
The cleanup function was deleting ClusterRole/ClusterRoleBinding by name, which couples it to the chart's naming scheme.
Switch to label-based deletion using app.kubernetes.io/instance so the cleanup works correctly regardless of how the chart names these resources.
Summary by CodeRabbit