Repository navigation
[release-2.1] fix(must-gather): grant inspect RBAC for OpenShift API groups - #569
Conversation
…-developer#568) Namespace inspect always reads OVN, DeploymentConfig, Build, and ImageStream resources. The chart Role and ClusterRole did not allow those reads, so gather returned Forbidden on clusters where the APIs exist. RHDHBUGS-3768 Signed-off-by: Fortune-Ndlovu <fndlovu@redhat.com>
PR Summary by QodoFix must-gather permissions for OpenShift namespace inspection
AI Description
Diagram
High-Level Assessment
Files changed (4)
|
|
Code Review by Qodo
1. Restricted chart installs fail
|
|
Important The |
b6ac7f2
into
redhat-developer:release-2.1



Description of the change
Cherry-pick of #568 onto
release-2.1.Namespace inspect always reads the OVN, DeploymentConfig, Build, and ImageStream resources. The must-gather Role and ClusterRole did not allow those reads, so the gather returned Forbidden on clusters where the APIs exist. This change adds unconditional
getandlistpermissions for those API groups in both RBAC templates.On this branch the must-gather chart is
0.7.0, so the chart version is bumped to0.7.1.Which issue(s) does this PR fix or relate to
How to test changes / Special notes to the reviewer
helm lintshould pass. The first template command should list the four new API groups on the ClusterRole. The namespace-scoped command should show the same resources on the Role. With monitoring disabled,k8s.ovn.orgshould still appear andservicemonitorsshould not.Checklist
Chart.yamlaccording to Semantic Versioning.values.yamland added to the corresponding README.md. The pre-commit utility can be used to generate the necessary content. Runpre-commit run --all-filesto run the hooks and then push any resulting changes. The pre-commit Workflow will enforce this and warn you if needed.pre-commithook.ct lintcommand.Made with Cursor