Example #1
0
// ValidateUpdate is the default update validation for an end user.
func (daemonSetStrategy) ValidateUpdate(ctx api.Context, obj, old runtime.Object) fielderrors.ValidationErrorList {
	validationErrorList := validation.ValidateDaemonSet(obj.(*expapi.DaemonSet))
	updateErrorList := validation.ValidateDaemonSetUpdate(old.(*expapi.DaemonSet), obj.(*expapi.DaemonSet))
	return append(validationErrorList, updateErrorList...)
}
Example #2
0
// Validate validates a new daemon set.
func (daemonSetStrategy) Validate(ctx api.Context, obj runtime.Object) fielderrors.ValidationErrorList {
	daemonSet := obj.(*expapi.DaemonSet)
	return validation.ValidateDaemonSet(daemonSet)
}