- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for ValidateNetworkPolicy (3.85 sec)
-
pkg/registry/networking/networkpolicy/strategy.go
networkPolicy := obj.(*networking.NetworkPolicy) ops := validation.ValidationOptionsForNetworking(networkPolicy, nil) return validation.ValidateNetworkPolicy(networkPolicy, ops) } // WarningsOnCreate returns warnings for the creation of the given object. func (networkPolicyStrategy) WarningsOnCreate(ctx context.Context, obj runtime.Object) []string { return nil }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon May 01 18:19:25 UTC 2023 - 3.9K bytes - Viewed (0) -
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)