Documentation ¶
Index ¶
- func ValidateCronJob(scheduledJob *batch.CronJob) field.ErrorList
- func ValidateCronJobSpec(spec *batch.CronJobSpec, fldPath *field.Path) field.ErrorList
- func ValidateCronJobUpdate(job, oldJob *batch.CronJob) field.ErrorList
- func ValidateGeneratedSelector(obj *batch.Job) field.ErrorList
- func ValidateJob(job *batch.Job) field.ErrorList
- func ValidateJobSpec(spec *batch.JobSpec, fldPath *field.Path) field.ErrorList
- func ValidateJobSpecUpdate(spec, oldSpec batch.JobSpec, fldPath *field.Path) field.ErrorList
- func ValidateJobStatus(status *batch.JobStatus, fldPath *field.Path) field.ErrorList
- func ValidateJobStatusUpdate(status, oldStatus batch.JobStatus) field.ErrorList
- func ValidateJobTemplate(job *batch.JobTemplate) field.ErrorList
- func ValidateJobTemplateSpec(spec *batch.JobTemplateSpec, fldPath *field.Path) field.ErrorList
- func ValidateJobUpdate(job, oldJob *batch.Job) field.ErrorList
- func ValidateJobUpdateStatus(job, oldJob *batch.Job) field.ErrorList
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ValidateCronJob ¶ added in v1.5.0
ValidateCronJob validates a CronJob and returns an ErrorList with any errors.
func ValidateCronJobSpec ¶ added in v1.5.0
ValidateCronJobSpec validates a CronJobSpec and returns an ErrorList with any errors.
func ValidateCronJobUpdate ¶ added in v1.9.0
ValidateCronJobUpdate validates an update to a CronJob and returns an ErrorList with any errors.
func ValidateGeneratedSelector ¶
ValidateGeneratedSelector validates that the generated selector on a controller object match the controller object metadata, and the labels on the pod template are as generated.
TODO: generalize for other controller objects that will follow the same pattern, such as ReplicaSet and DaemonSet, and move to new location. Replace batch.Job with an interface.
func ValidateJob ¶
ValidateJob validates a Job and returns an ErrorList with any errors.
func ValidateJobSpec ¶
ValidateJobSpec validates a JobSpec and returns an ErrorList with any errors.
func ValidateJobSpecUpdate ¶
ValidateJobSpecUpdate validates an update to a JobSpec and returns an ErrorList with any errors.
func ValidateJobStatus ¶
ValidateJobStatus validates a JobStatus and returns an ErrorList with any errors.
func ValidateJobStatusUpdate ¶
ValidateJobStatusUpdate validates an update to a JobStatus and returns an ErrorList with any errors.
func ValidateJobTemplate ¶
func ValidateJobTemplate(job *batch.JobTemplate) field.ErrorList
ValidateJobTemplate validates a JobTemplate and returns an ErrorList with any errors.
func ValidateJobTemplateSpec ¶
ValidateJobTemplateSpec validates a JobTemplateSpec and returns an ErrorList with any errors.
func ValidateJobUpdate ¶
ValidateJobUpdate validates an update to a Job and returns an ErrorList with any errors.
Types ¶
This section is empty.