示例#1
0
文件: rest.go 项目: ngbinh/kubernetes
// 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...)
}
示例#2
0
文件: rest.go 项目: ngbinh/kubernetes
// Validate validates a new daemon.
func (daemonStrategy) Validate(ctx api.Context, obj runtime.Object) fielderrors.ValidationErrorList {
	daemon := obj.(*api.Daemon)
	return validation.ValidateDaemon(daemon)
}