We're using controller-runtime's MultiValidatingHandler, which returns as soon as one validator reports an error*. That prevents other validators from running, and the user may get an incomplete picture of validation failures.
|
func NewValidator(client ctrlclient.Client, decoder admission.Decoder) admission.Handler { |
|
return admission.MultiValidatingHandler( |
|
NewClusterUUIDLabeler(client, decoder).Validator(), |
|
NewNutanixValidator(client, decoder).Validator(), |
|
) |
|
} |