fix: add roles/rolebindings permissions to RBAC manifest (PRI-550)

kubectl apply requires get/list/watch on roles/rolebindings to check
existing state before patching. Without these, apply fails with
Forbidden on the GET call itself.

Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
2026-05-04 19:40:05 +00:00
committed by Hugh Hackman [agent]
parent 645cd742a1
commit 4942692e64
+3
View File
@@ -12,6 +12,9 @@ metadata:
name: e2e-ci-runner
namespace: privilegedescalation-dev
rules:
- apiGroups: ["rbac.authorization.k8s.io"]
resources: ["roles", "rolebindings"]
verbs: ["get", "list", "watch", "create", "delete"]
- apiGroups: [""]
resources: ["configmaps", "serviceaccounts", "events"]
verbs: ["get", "list", "create", "delete"]