Commit 3215d08
feat: remove product-config; merge config/env overrides directly in validate
Replaces the product-config validation path with a ValidatedKafkaCluster that
carries, per role group, the merged config plus the config-file, jvm-security,
and env overrides resolved directly from the CRD (role <- role-group). Overrides
now use stackable_operator::v2::config_overrides::KeyValueConfigOverrides
(matching trino/hdfs); the v1 KeyValueOverridesProvider impls and the per-role
Configuration impls are removed, and KAFKA_CLUSTER_ID injection moves into the
override merge (collect_*_role_group_overrides). The dereferenced authorization
config is folded into the validated cluster.
Drops the product-config crate dependency (it remains transitive via
stackable-operator). The CRD gains `nullable: true` on configOverrides values
(v2 allows null to delete a key). Rendered .properties and env vars are
unchanged (18 tests pass; byte parity to be confirmed via kuttl). Regenerated
extra/crds.yaml and Cargo.nix.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>1 parent cb850dc commit 3215d08
14 files changed
Lines changed: 314 additions & 290 deletions
File tree
- extra
- rust/operator-binary
- src
- controller
- build
- crd
- role
- resource
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
14 | 13 | | |
15 | 14 | | |
16 | 15 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
541 | 541 | | |
542 | 542 | | |
543 | 543 | | |
| 544 | + | |
544 | 545 | | |
545 | 546 | | |
546 | 547 | | |
| |||
551 | 552 | | |
552 | 553 | | |
553 | 554 | | |
| 555 | + | |
554 | 556 | | |
555 | 557 | | |
556 | 558 | | |
| |||
1158 | 1160 | | |
1159 | 1161 | | |
1160 | 1162 | | |
| 1163 | + | |
1161 | 1164 | | |
1162 | 1165 | | |
1163 | 1166 | | |
| |||
1168 | 1171 | | |
1169 | 1172 | | |
1170 | 1173 | | |
| 1174 | + | |
1171 | 1175 | | |
1172 | 1176 | | |
1173 | 1177 | | |
| |||
1786 | 1790 | | |
1787 | 1791 | | |
1788 | 1792 | | |
| 1793 | + | |
1789 | 1794 | | |
1790 | 1795 | | |
1791 | 1796 | | |
| |||
1796 | 1801 | | |
1797 | 1802 | | |
1798 | 1803 | | |
| 1804 | + | |
1799 | 1805 | | |
1800 | 1806 | | |
1801 | 1807 | | |
| |||
2235 | 2241 | | |
2236 | 2242 | | |
2237 | 2243 | | |
| 2244 | + | |
2238 | 2245 | | |
2239 | 2246 | | |
2240 | 2247 | | |
| |||
2245 | 2252 | | |
2246 | 2253 | | |
2247 | 2254 | | |
| 2255 | + | |
2248 | 2256 | | |
2249 | 2257 | | |
2250 | 2258 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
13 | 12 | | |
14 | 13 | | |
15 | 14 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
7 | 6 | | |
8 | 7 | | |
9 | 8 | | |
| |||
51 | 50 | | |
52 | 51 | | |
53 | 52 | | |
54 | | - | |
55 | 53 | | |
56 | 54 | | |
57 | 55 | | |
| |||
114 | 112 | | |
115 | 113 | | |
116 | 114 | | |
117 | | - | |
118 | | - | |
119 | | - | |
120 | 115 | | |
121 | 116 | | |
122 | 117 | | |
| |||
156 | 151 | | |
157 | 152 | | |
158 | 153 | | |
159 | | - | |
160 | | - | |
161 | | - | |
162 | 154 | | |
163 | 155 | | |
164 | 156 | | |
| |||
198 | 190 | | |
199 | 191 | | |
200 | 192 | | |
201 | | - | |
202 | 193 | | |
203 | 194 | | |
204 | 195 | | |
| |||
207 | 198 | | |
208 | 199 | | |
209 | 200 | | |
210 | | - | |
211 | 201 | | |
212 | 202 | | |
213 | 203 | | |
| |||
238 | 228 | | |
239 | 229 | | |
240 | 230 | | |
241 | | - | |
| 231 | + | |
242 | 232 | | |
243 | 233 | | |
244 | 234 | | |
245 | | - | |
246 | | - | |
247 | | - | |
248 | | - | |
249 | | - | |
250 | | - | |
251 | | - | |
252 | | - | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
253 | 238 | | |
254 | 239 | | |
255 | 240 | | |
| |||
295 | 280 | | |
296 | 281 | | |
297 | 282 | | |
298 | | - | |
299 | | - | |
300 | | - | |
301 | | - | |
302 | | - | |
303 | | - | |
304 | | - | |
305 | | - | |
306 | | - | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
307 | 286 | | |
308 | 287 | | |
309 | 288 | | |
| |||
333 | 312 | | |
334 | 313 | | |
335 | 314 | | |
336 | | - | |
337 | | - | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
338 | 318 | | |
339 | 319 | | |
340 | 320 | | |
| |||
344 | 324 | | |
345 | 325 | | |
346 | 326 | | |
347 | | - | |
| 327 | + | |
348 | 328 | | |
349 | 329 | | |
350 | | - | |
| 330 | + | |
351 | 331 | | |
352 | | - | |
| 332 | + | |
353 | 333 | | |
354 | 334 | | |
355 | 335 | | |
356 | 336 | | |
357 | 337 | | |
358 | 338 | | |
359 | | - | |
| 339 | + | |
360 | 340 | | |
361 | 341 | | |
362 | | - | |
| 342 | + | |
363 | 343 | | |
364 | | - | |
| 344 | + | |
365 | 345 | | |
366 | 346 | | |
367 | 347 | | |
368 | 348 | | |
369 | 349 | | |
370 | 350 | | |
371 | | - | |
| 351 | + | |
372 | 352 | | |
373 | 353 | | |
374 | 354 | | |
375 | 355 | | |
376 | 356 | | |
377 | | - | |
| 357 | + | |
378 | 358 | | |
379 | 359 | | |
380 | 360 | | |
| |||
417 | 397 | | |
418 | 398 | | |
419 | 399 | | |
420 | | - | |
| 400 | + | |
421 | 401 | | |
422 | 402 | | |
423 | | - | |
| 403 | + | |
424 | 404 | | |
425 | | - | |
| 405 | + | |
426 | 406 | | |
427 | 407 | | |
428 | 408 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
5 | 4 | | |
6 | 5 | | |
7 | 6 | | |
| |||
78 | 77 | | |
79 | 78 | | |
80 | 79 | | |
81 | | - | |
| 80 | + | |
| 81 | + | |
82 | 82 | | |
83 | 83 | | |
84 | 84 | | |
| |||
90 | 90 | | |
91 | 91 | | |
92 | 92 | | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | | - | |
97 | | - | |
98 | 93 | | |
99 | 94 | | |
100 | 95 | | |
| |||
107 | 102 | | |
108 | 103 | | |
109 | 104 | | |
110 | | - | |
| 105 | + | |
111 | 106 | | |
112 | 107 | | |
113 | 108 | | |
114 | 109 | | |
115 | 110 | | |
116 | 111 | | |
117 | 112 | | |
118 | | - | |
| 113 | + | |
119 | 114 | | |
120 | 115 | | |
121 | 116 | | |
| |||
128 | 123 | | |
129 | 124 | | |
130 | 125 | | |
131 | | - | |
132 | | - | |
133 | | - | |
134 | | - | |
135 | | - | |
136 | | - | |
| 126 | + | |
137 | 127 | | |
138 | 128 | | |
139 | 129 | | |
| |||
0 commit comments