Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Job ¶
type Job struct {
// contains filtered or unexported fields
}
Job -
func NewJob ¶
func NewJob( job *batchv1.Job, jobType string, preserve bool, timeout time.Duration, beforeHash string, ) *Job
NewJob returns an initialized Job.
func (*Job) DoJob ¶
DoJob - run a job if the hashBefore and hash is different. If there is an existing job, wait for the job to finish. Right now we do not expect the job to change while running. If TTLSecondsAfterFinished is unset on the Job and preserve is false, the Job will be deleted after 10 minutes. Set preserve to true if you want to keep the job, or set a specific value to job.Spec.TTLSecondsAfterFinished to define when the Job should be deleted.
Click to show internal directories.
Click to hide internal directories.