// 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...) }
// 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) }