code: func (networkPolicyStrategy) Validate(ctx context.Context, obj runtime.Object) field.ErrorList {
  	networkPolicy := obj.(*networking.NetworkPolicy)
  	allErrs := validation.ValidateNetworkPolicy(networkPolicy)
  	allErrs = append(allErrs, validation.ValidateConditionalNetworkPolicy(networkPolicy, nil)...)
  	return allErrs
  }
docs: // Validate validates a new NetworkPolicy.