Exemple #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.(*api.Daemon))
	updateErrorList := validation.ValidateDaemonUpdate(old.(*api.Daemon), obj.(*api.Daemon))
	return append(validationErrorList, updateErrorList...)
}
Exemple #2
0
// Validate validates a new daemon.
func (daemonStrategy) Validate(ctx api.Context, obj runtime.Object) fielderrors.ValidationErrorList {
	daemon := obj.(*api.Daemon)
	return validation.ValidateDaemon(daemon)
}