- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for ValidateNetworkPolicy (0.19 sec)
-
pkg/apis/networking/validation/validation.go
} } return allErrs } // ValidateNetworkPolicy validates a networkpolicy. func ValidateNetworkPolicy(np *networking.NetworkPolicy, opts NetworkPolicyValidationOptions) field.ErrorList {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Feb 07 14:48:01 UTC 2024 - 31.5K bytes - Viewed (0) -
pkg/apis/networking/validation/validation_test.go
setIngressPorts(makePort(&protocolTCP, intstr.FromInt32(32768), 32768))), } // Success cases are expected to pass validation. for k, v := range successCases { if errs := ValidateNetworkPolicy(v, NetworkPolicyValidationOptions{AllowInvalidLabelValueInSelector: true}); len(errs) != 0 { t.Errorf("Expected success for the success validation test number %d, got %v", k, errs) } }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Oct 31 21:05:06 UTC 2023 - 73.3K bytes - Viewed (0)