Commit a632588
committed
Fix FailoverIP validation and immutability tests
- Update FailoverIP validation rule to handle optional fields correctly
- Add !has(self) check for optional field handling
- Improve IPv4 regex pattern for more accurate validation
- Fixes validation for 'Auto' (mixed case) and incomplete IPs
- Fix FailoverIP immutability test
- Add Get calls before Update attempts to ensure CEL validation
can properly compare self with oldSelf
- Same fix pattern as DatacenterID immutability test1 parent 089ffda commit a632588
File tree
3 files changed
+6
-2
lines changed- api/v1alpha1
- config/crd/bases
3 files changed
+6
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
164 | 164 | | |
165 | 165 | | |
166 | 166 | | |
167 | | - | |
| 167 | + | |
168 | 168 | | |
169 | 169 | | |
170 | 170 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
463 | 463 | | |
464 | 464 | | |
465 | 465 | | |
| 466 | + | |
| 467 | + | |
466 | 468 | | |
467 | 469 | | |
| 470 | + | |
| 471 | + | |
468 | 472 | | |
469 | 473 | | |
470 | 474 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
260 | 260 | | |
261 | 261 | | |
262 | 262 | | |
263 | | - | |
| 263 | + | |
264 | 264 | | |
265 | 265 | | |
266 | 266 | | |
| |||
0 commit comments