Commit 67349fa
committed
🐛 fix: Add documented RBAC prerequisites to test template
Add bind and escalate verbs to test RBAC template to comply with documented
prerequisites in docs/concepts/permission-model.md.
These verbs are REQUIRED per our documentation for installer ServiceAccounts
that install operators with their own RBAC.
The missing prerequisites were exposed by the rbac-escalation e2e test, which
uses an operator requiring permissions the test SA doesn't have (storage.k8s.io,
scheduling.k8s.io). Without bind/escalate verbs, Kubernetes rejects the
ClusterRoleBinding creation with escalation prevention errors.
Previous tests passed because they only used test-operator, which has minimal
RBAC (tokenreviews, subjectaccessreviews) that the test SA coincidentally
already has. This created false confidence and hid the incomplete RBAC template.
Fixes: rbac-escalation e2e test
Aligns: test template with docs/concepts/permission-model.md
See: https://github.com/operator-framework/operator-controller/actions/runs/20920337864/job/60103970542?pr=24411 parent d192d08 commit 67349fa
1 file changed
Lines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
53 | | - | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
54 | 58 | | |
55 | 59 | | |
56 | 60 | | |
| |||
0 commit comments