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 the job hash changes while the previous job still running then the first it waits for the previous job to finish then deletes the old job and runs the new one. (We do this as we assume that killing a job can leave the openstack deployment in an incosistent state.) 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.
func (*Job) GetTotalFailedAttempts ¶ added in v0.4.0
GetTotalFailedAttempts func
func (*Job) HasReachedLimit ¶ added in v0.4.0
HasReachedLimit func