func matchSuccessPolicy(logger klog.Logger, successPolicy *batch.SuccessPolicy, completions int32, succeededIndexes orderedIntervals) (string, bool) { … } func hasSuccessCriteriaMetCondition(job *batch.Job) *batch.JobCondition { … } func isSuccessCriteriaMetCondition(cond *batch.JobCondition) bool { … } func matchSucceededIndexesRule(ruleIndexes, succeededIndexes orderedIntervals, succeededCount *int32) bool { … }