Commit f487b37
feat(operator): Auto-create RBAC for spark_application batch engine (#6597)
* feat(operator): auto-create RBAC for spark_application batch engine
Reconcile server/driver Roles from an embedded YAML template so FeatureStore
materialization works without manual SA/Role setup. Widen the operator
ClusterRole only as needed to grant those permissions (including
deletecollection for Spark driver cleanup).
Signed-off-by: Aniket Paluskar <apaluska@redhat.com>
* fix(operator): bake default batch-driver SA into feature_store.yaml
When batch_engine.service_account is omitted, inject feast-<cr>-batch-driver so the SparkApplication matches the SA/RBAC the operator already creates (R2-2).
Co-authored-by: Cursor <cursoragent@cursor.com>
Signed-off-by: Aniket Paluskar <apaluska@redhat.com>
* fix(operator): inject batch-driver SA only for spark_application
Limit service_account baking to spark_application so other batch engines
are not given an unexpected parameter.
Signed-off-by: Aniket Paluskar <apaluska@redhat.com>
* chore(operator): fix CI fmt and secrets baseline
gofmt repo_config_test map literals and refresh .secrets.baseline
line numbers after batch-engine RBAC wiring in services.go.
Signed-off-by: Aniket Paluskar <apaluska@redhat.com>
* refactor(operator): parse batch-engine ConfigMap once per reconcile
Share getBatchEngineConfig() for engine type and driver SA resolution
instead of fetching/parsing the same ConfigMap twice.
Signed-off-by: Aniket Paluskar <apaluska@redhat.com>
---------
Signed-off-by: Aniket Paluskar <apaluska@redhat.com>
Co-authored-by: Cursor <cursoragent@cursor.com>1 parent e0a8573 commit f487b37
11 files changed
Lines changed: 711 additions & 12 deletions
File tree
- infra/feast-operator
- bundle/manifests
- config/rbac
- dist
- internal/controller
- services
- rbac_templates
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1172 | 1172 | | |
1173 | 1173 | | |
1174 | 1174 | | |
1175 | | - | |
| 1175 | + | |
1176 | 1176 | | |
1177 | 1177 | | |
1178 | 1178 | | |
| |||
1555 | 1555 | | |
1556 | 1556 | | |
1557 | 1557 | | |
1558 | | - | |
| 1558 | + | |
1559 | 1559 | | |
Lines changed: 46 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
147 | 147 | | |
148 | 148 | | |
149 | 149 | | |
150 | | - | |
| 150 | + | |
151 | 151 | | |
152 | 152 | | |
153 | 153 | | |
| |||
180 | 180 | | |
181 | 181 | | |
182 | 182 | | |
183 | | - | |
184 | 183 | | |
185 | 184 | | |
186 | 185 | | |
187 | 186 | | |
| 187 | + | |
188 | 188 | | |
189 | 189 | | |
190 | 190 | | |
| |||
193 | 193 | | |
194 | 194 | | |
195 | 195 | | |
196 | | - | |
197 | 196 | | |
198 | 197 | | |
199 | 198 | | |
200 | 199 | | |
201 | 200 | | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
202 | 212 | | |
203 | 213 | | |
204 | 214 | | |
205 | 215 | | |
206 | 216 | | |
207 | 217 | | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
208 | 235 | | |
209 | 236 | | |
210 | 237 | | |
| |||
246 | 273 | | |
247 | 274 | | |
248 | 275 | | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
249 | 284 | | |
250 | 285 | | |
251 | 286 | | |
| |||
321 | 356 | | |
322 | 357 | | |
323 | 358 | | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
324 | 367 | | |
325 | 368 | | |
326 | 369 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
13 | 12 | | |
14 | 13 | | |
15 | 14 | | |
16 | 15 | | |
| 16 | + | |
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
26 | 25 | | |
27 | 26 | | |
28 | 27 | | |
29 | 28 | | |
30 | 29 | | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
31 | 41 | | |
32 | 42 | | |
33 | 43 | | |
34 | 44 | | |
35 | 45 | | |
36 | 46 | | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
37 | 64 | | |
38 | 65 | | |
39 | 66 | | |
| |||
158 | 185 | | |
159 | 186 | | |
160 | 187 | | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22037 | 22037 | | |
22038 | 22038 | | |
22039 | 22039 | | |
22040 | | - | |
22041 | 22040 | | |
22042 | 22041 | | |
22043 | 22042 | | |
22044 | 22043 | | |
| 22044 | + | |
22045 | 22045 | | |
22046 | 22046 | | |
22047 | 22047 | | |
| |||
22050 | 22050 | | |
22051 | 22051 | | |
22052 | 22052 | | |
22053 | | - | |
22054 | 22053 | | |
22055 | 22054 | | |
22056 | 22055 | | |
22057 | 22056 | | |
22058 | 22057 | | |
| 22058 | + | |
| 22059 | + | |
| 22060 | + | |
| 22061 | + | |
| 22062 | + | |
| 22063 | + | |
| 22064 | + | |
| 22065 | + | |
| 22066 | + | |
| 22067 | + | |
| 22068 | + | |
22059 | 22069 | | |
22060 | 22070 | | |
22061 | 22071 | | |
22062 | 22072 | | |
22063 | 22073 | | |
22064 | 22074 | | |
| 22075 | + | |
| 22076 | + | |
| 22077 | + | |
| 22078 | + | |
| 22079 | + | |
| 22080 | + | |
| 22081 | + | |
| 22082 | + | |
| 22083 | + | |
| 22084 | + | |
| 22085 | + | |
| 22086 | + | |
| 22087 | + | |
| 22088 | + | |
| 22089 | + | |
| 22090 | + | |
| 22091 | + | |
22065 | 22092 | | |
22066 | 22093 | | |
22067 | 22094 | | |
| |||
22186 | 22213 | | |
22187 | 22214 | | |
22188 | 22215 | | |
| 22216 | + | |
| 22217 | + | |
| 22218 | + | |
| 22219 | + | |
| 22220 | + | |
| 22221 | + | |
| 22222 | + | |
| 22223 | + | |
22189 | 22224 | | |
22190 | 22225 | | |
22191 | 22226 | | |
| |||
Lines changed: 6 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
68 | | - | |
| 68 | + | |
| 69 | + | |
69 | 70 | | |
70 | | - | |
| 71 | + | |
| 72 | + | |
71 | 73 | | |
| 74 | + | |
| 75 | + | |
72 | 76 | | |
73 | 77 | | |
74 | 78 | | |
| |||
0 commit comments