🐛 fix: add missing RBAC delete permission for MachinePools in ROSA controller#6089
Conversation
|
Hi @andclt. Thanks for your PR. I'm waiting for a kubernetes-sigs member to verify that this patch is reasonable to test. If it is, they should reply with Tip We noticed you've done this a few times! Consider joining the org to skip this step and gain Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. DetailsInstructions 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. |
|
/ok-to-test |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: damdo 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 |
serngawy
left a comment
There was a problem hiding this comment.
We should also consider deleting the cluster CR to cascade delete the ROSACluster CR, otherwise both CRs will be left over. Lets do it in another PR, this PR looks good to me.
|
LGTM label has been added. DetailsGit tree hash: ecdfec320e262a7fbfc8b9f559a89f8d0bf71511 |
What type of PR is this?
/kind bug
What this PR does / why we need it:
The
ROSAControlPlanecontroller attempts to delete CAPIMachinePoolresources during cluster deletion to work around ROSA-HCP's architectural constraint (clusters cannot exist withoutMachinePools). However, the RBACClusterRoleis missing thedeleteverb formachinepoolsresources, causing deletion to fail with permission errors.This PR adds
deleteverb to thecluster.x-k8s.io/machinepoolsRBAC marker inrosacontrolplane_controller.goWhich issue(s) this PR fixes (optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)format, will close the issue(s) when PR gets merged):Fixes https://redhat.atlassian.net/browse/ROSAENG-59186
Special notes for your reviewer:
AI Usage:
None
Checklist:
Release note: