// FinishedCondition returns true if a job is finished as well as the condition type indicating that. // Returns false and no condition type otherwise func FinishedCondition(j *batch.Job) (bool, batch.JobConditionType) { … } // IsJobFinished checks whether the given Job has finished execution. // It does not discriminate between successful and failed terminations. func IsJobFinished(j *batch.Job) bool { … } // IsJobSucceeded returns whether a job has completed successfully. func IsJobSucceeded(j *batch.Job) bool { … }