Пример #1
0
// ValidateUpdate is the default update validation for an end user.
func (daemonStrategy) ValidateUpdate(ctx api.Context, obj, old runtime.Object) fielderrors.ValidationErrorList {
	validationErrorList := validation.ValidateDaemon(obj.(*expapi.Daemon))
	updateErrorList := validation.ValidateDaemonUpdate(old.(*expapi.Daemon), obj.(*expapi.Daemon))
	return append(validationErrorList, updateErrorList...)
}
Пример #2
0
// Validate validates a new daemon.
func (daemonStrategy) Validate(ctx api.Context, obj runtime.Object) fielderrors.ValidationErrorList {
	daemon := obj.(*expapi.Daemon)
	return validation.ValidateDaemon(daemon)
}