Пример #1
0
// ValidateUpdate is the default update validation for an end user.
func (ingressStrategy) ValidateUpdate(ctx api.Context, obj, old runtime.Object) fielderrors.ValidationErrorList {
	validationErrorList := validation.ValidateIngress(obj.(*experimental.Ingress))
	updateErrorList := validation.ValidateIngressUpdate(old.(*experimental.Ingress), obj.(*experimental.Ingress))
	return append(validationErrorList, updateErrorList...)
}
Пример #2
0
// Validate validates a new Ingress.
func (ingressStrategy) Validate(ctx api.Context, obj runtime.Object) fielderrors.ValidationErrorList {
	ingress := obj.(*experimental.Ingress)
	err := validation.ValidateIngress(ingress)
	return err
}