kubernetes/pkg/apis/networking/validation
Dan Winship 7a56b6e3f7 Add validation.IsValidCIDR
Move apivalidation.ValidateCIDR to apimachinery, and rename it and
change its return value to match the other functions.

Also, add unit tests.

(Also, while updating NetworkPolicy validation for the API change, fix
a variable name that implied that IPBlock.Except[] is IP-valued rather
than CIDR-valued.)
2024-02-07 09:48:01 -05:00
..
validation_test.go update ServiceCIDR API: replace IPv4,IPv6 fields by an array of strings 2023-10-31 21:05:06 +00:00
validation.go Add validation.IsValidCIDR 2024-02-07 09:48:01 -05:00