Esempio n. 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))
}
Esempio n. 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)
}