示例#1
0
// ValidateUpdate is the default update validation for an end user.
func (scheduledJobStrategy) ValidateUpdate(ctx api.Context, obj, old runtime.Object) field.ErrorList {
	return validation.ValidateScheduledJob(obj.(*batch.ScheduledJob))
}
示例#2
0
// Validate validates a new scheduled job.
func (scheduledJobStrategy) Validate(ctx api.Context, obj runtime.Object) field.ErrorList {
	scheduledJob := obj.(*batch.ScheduledJob)
	return validation.ValidateScheduledJob(scheduledJob)
}