Commit d7850dd
chore: Describe RBAC rules, remove unnecessary rules (#1020)
* chore: Describe RBAC rules, remove unnecessary rules
* chore: Update changelog
* Apply suggestions from code review
Co-authored-by: Nick <10092581+NickLarsenNZ@users.noreply.github.com>
* chore: Add missing rule comment
* chore: Remove the get for customresourcedefinitions for the operator clusterrole
It is not needed for CRD maintenance nor startup condition
* chore: Remove the configmaps/secrets/serviceaccounts get rule for the product clusterrole
Any necessary configmaps/secrets would be mounted. The product pod doesn't communicate with the Kubernetes API
* fix: customresourcedefinitions list/watch is always required for startup condition
* chore: Simplify the rule comments
* chore: Remove the events.k8s.io rule from the product ClusterRole
The operator manages events
* chore: Split the roles.yaml into separate files for clusterrole-operator.yaml and clusterrole-product.yaml
* Update deploy/helm/zookeeper-operator/templates/clusterrole-operator.yaml
Co-authored-by: Techassi <sascha.lautenschlaeger@stackable.tech>
---------
Co-authored-by: Techassi <sascha.lautenschlaeger@stackable.tech>1 parent 82de264 commit d7850dd
3 files changed
Lines changed: 68 additions & 67 deletions
File tree
- deploy/helm/zookeeper-operator/templates
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
7 | 13 | | |
8 | 14 | | |
9 | 15 | | |
| |||
Lines changed: 41 additions & 67 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | 9 | | |
17 | 10 | | |
18 | 11 | | |
19 | 12 | | |
20 | 13 | | |
21 | 14 | | |
22 | 15 | | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
23 | 19 | | |
24 | 20 | | |
25 | 21 | | |
26 | | - | |
27 | 22 | | |
28 | | - | |
29 | 23 | | |
30 | | - | |
31 | | - | |
32 | 24 | | |
33 | 25 | | |
34 | 26 | | |
35 | 27 | | |
36 | 28 | | |
37 | 29 | | |
38 | | - | |
39 | 30 | | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
40 | 45 | | |
41 | 46 | | |
42 | 47 | | |
| |||
47 | 52 | | |
48 | 53 | | |
49 | 54 | | |
50 | | - | |
51 | | - | |
| 55 | + | |
52 | 56 | | |
53 | 57 | | |
54 | 58 | | |
| |||
57 | 61 | | |
58 | 62 | | |
59 | 63 | | |
| 64 | + | |
| 65 | + | |
60 | 66 | | |
61 | 67 | | |
62 | 68 | | |
63 | 69 | | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | 70 | | |
77 | 71 | | |
78 | 72 | | |
79 | 73 | | |
80 | 74 | | |
81 | 75 | | |
82 | | - | |
83 | 76 | | |
| 77 | + | |
84 | 78 | | |
85 | 79 | | |
86 | 80 | | |
| |||
91 | 85 | | |
92 | 86 | | |
93 | 87 | | |
94 | | - | |
95 | | - | |
| 88 | + | |
| 89 | + | |
96 | 90 | | |
97 | 91 | | |
98 | 92 | | |
99 | 93 | | |
100 | 94 | | |
101 | | - | |
102 | 95 | | |
103 | 96 | | |
104 | 97 | | |
105 | 98 | | |
106 | 99 | | |
| 100 | + | |
107 | 101 | | |
108 | 102 | | |
109 | 103 | | |
110 | | - | |
| 104 | + | |
111 | 105 | | |
112 | 106 | | |
113 | 107 | | |
| |||
116 | 110 | | |
117 | 111 | | |
118 | 112 | | |
| 113 | + | |
119 | 114 | | |
120 | 115 | | |
121 | 116 | | |
122 | 117 | | |
123 | 118 | | |
124 | 119 | | |
125 | 120 | | |
| 121 | + | |
| 122 | + | |
126 | 123 | | |
127 | 124 | | |
128 | 125 | | |
129 | 126 | | |
130 | 127 | | |
| 128 | + | |
| 129 | + | |
131 | 130 | | |
132 | 131 | | |
133 | | - | |
134 | 132 | | |
135 | | - | |
136 | | - | |
| 133 | + | |
137 | 134 | | |
138 | 135 | | |
139 | 136 | | |
140 | 137 | | |
141 | | - | |
142 | 138 | | |
143 | 139 | | |
144 | 140 | | |
145 | | - | |
146 | 141 | | |
| 142 | + | |
| 143 | + | |
147 | 144 | | |
148 | 145 | | |
149 | 146 | | |
150 | | - | |
151 | | - | |
152 | | - | |
153 | | - | |
154 | | - | |
155 | | - | |
156 | | - | |
157 | | - | |
158 | | - | |
159 | | - | |
160 | | - | |
161 | | - | |
162 | | - | |
163 | | - | |
164 | | - | |
165 | | - | |
166 | | - | |
167 | | - | |
| 147 | + | |
168 | 148 | | |
169 | 149 | | |
170 | | - | |
171 | | - | |
172 | | - | |
173 | | - | |
174 | | - | |
175 | | - | |
| 150 | + | |
176 | 151 | | |
177 | | - | |
| 152 | + | |
| 153 | + | |
178 | 154 | | |
179 | | - | |
| 155 | + | |
180 | 156 | | |
181 | | - | |
182 | | - | |
183 | | - | |
| 157 | + | |
| 158 | + | |
184 | 159 | | |
185 | | - | |
186 | | - | |
| 160 | + | |
Lines changed: 21 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
0 commit comments