Commit 614a5ea
api: replace manual XValidation CEL rule with ExactlyOneOf marker on ClusterObjectSetObject (#2620)
Use the +kubebuilder:validation:ExactlyOneOf={object,ref} marker
introduced in controller-tools v0.19.0 instead of a hand-written
CEL XValidation rule. The generated CEL expression is semantically
equivalent.
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>1 parent 5d89b4e commit 614a5ea
4 files changed
Lines changed: 13 additions & 7 deletions
File tree
- api/v1
- helm/olmv1/base/operator-controller/crd/experimental
- manifests
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
395 | 395 | | |
396 | 396 | | |
397 | 397 | | |
398 | | - | |
| 398 | + | |
399 | 399 | | |
400 | 400 | | |
401 | 401 | | |
| |||
Lines changed: 4 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
232 | 232 | | |
233 | 233 | | |
234 | 234 | | |
235 | | - | |
236 | | - | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
237 | 239 | | |
238 | 240 | | |
239 | 241 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1556 | 1556 | | |
1557 | 1557 | | |
1558 | 1558 | | |
1559 | | - | |
1560 | | - | |
| 1559 | + | |
| 1560 | + | |
| 1561 | + | |
| 1562 | + | |
1561 | 1563 | | |
1562 | 1564 | | |
1563 | 1565 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1517 | 1517 | | |
1518 | 1518 | | |
1519 | 1519 | | |
1520 | | - | |
1521 | | - | |
| 1520 | + | |
| 1521 | + | |
| 1522 | + | |
| 1523 | + | |
1522 | 1524 | | |
1523 | 1525 | | |
1524 | 1526 | | |
| |||
0 commit comments