Commit 778e771
Remove unnecessary pods RBAC permissions
The workload rbacRules and kubebuilder RBAC markers granted the operator and
its workload service account full CRUD (create/delete/get/list/patch/update/
watch) on core Pods, but the operator never reads or writes Pod objects
directly — pods only ever come into being indirectly via Deployments/
StatefulSets/Jobs. Remove the unused pods permission and regenerate
config/rbac/role.yaml.
Signed-off-by: Martin Schuppert <mschuppert@redhat.com>1 parent 1a8a838 commit 778e771
3 files changed
Lines changed: 1 addition & 9 deletions
File tree
- config/rbac
- internal/controller
- test/functional
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
11 | 10 | | |
12 | 11 | | |
13 | 12 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
89 | 89 | | |
90 | 90 | | |
91 | 91 | | |
92 | | - | |
93 | 92 | | |
94 | 93 | | |
95 | 94 | | |
| |||
683 | 682 | | |
684 | 683 | | |
685 | 684 | | |
686 | | - | |
687 | | - | |
688 | | - | |
689 | | - | |
690 | | - | |
691 | 685 | | |
692 | 686 | | |
693 | 687 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
163 | 163 | | |
164 | 164 | | |
165 | 165 | | |
166 | | - | |
| 166 | + | |
167 | 167 | | |
168 | | - | |
169 | 168 | | |
170 | 169 | | |
171 | 170 | | |
| |||
0 commit comments