Commit fcadbcd
installer: address review feedback for NetworkDeviceSpec validation
- Reduce nameservers MaxItems from 10 to 3 to match existing Go
validation that enforces a maximum of 3 nameservers.
- Add unit tests for IPv6 nameserver, invalid nameserver, empty
gateway, and IPv6 CIDR ipAddrs to cover the XValidation CEL rules.
- Update generated CRD YAML to reflect the MaxItems change.
Signed-off-by: Ankit Mahajan <ankimaha@redhat.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Signed-off-by: Ankit Mahajan <ankimaha@redhat.com>1 parent a7a0b0a commit fcadbcd
3 files changed
Lines changed: 43 additions & 2 deletions
File tree
- data/data
- pkg/types/vsphere
- validation
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8692 | 8692 | | |
8693 | 8693 | | |
8694 | 8694 | | |
8695 | | - | |
| 8695 | + | |
8696 | 8696 | | |
8697 | 8697 | | |
8698 | 8698 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
348 | 348 | | |
349 | 349 | | |
350 | 350 | | |
351 | | - | |
| 351 | + | |
352 | 352 | | |
353 | 353 | | |
354 | 354 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
898 | 898 | | |
899 | 899 | | |
900 | 900 | | |
| 901 | + | |
| 902 | + | |
| 903 | + | |
| 904 | + | |
| 905 | + | |
| 906 | + | |
| 907 | + | |
| 908 | + | |
| 909 | + | |
| 910 | + | |
| 911 | + | |
| 912 | + | |
| 913 | + | |
| 914 | + | |
| 915 | + | |
| 916 | + | |
| 917 | + | |
| 918 | + | |
| 919 | + | |
| 920 | + | |
| 921 | + | |
| 922 | + | |
| 923 | + | |
| 924 | + | |
| 925 | + | |
| 926 | + | |
| 927 | + | |
| 928 | + | |
| 929 | + | |
| 930 | + | |
| 931 | + | |
| 932 | + | |
| 933 | + | |
| 934 | + | |
| 935 | + | |
| 936 | + | |
| 937 | + | |
| 938 | + | |
| 939 | + | |
| 940 | + | |
| 941 | + | |
901 | 942 | | |
902 | 943 | | |
903 | 944 | | |
| |||
0 commit comments