Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for hasSuccessCriteriaMetCondition (0.46 sec)

  1. pkg/controller/job/success_policy.go

    			}
    		} else if rule.SucceededCount != nil && succeededIndexes.total() >= int(*rule.SucceededCount) {
    			return fmt.Sprintf("%s %d", rulesMatchedMsg, index), true
    		}
    	}
    	return "", false
    }
    
    func hasSuccessCriteriaMetCondition(job *batch.Job) *batch.JobCondition {
    	if feature.DefaultFeatureGate.Enabled(features.JobSuccessPolicy) {
    		successCriteriaMet := findConditionByType(job.Status.Conditions, batch.JobSuccessCriteriaMet)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 11 15:36:36 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  2. pkg/controller/job/job_controller.go

    	var manageJobErr error
    
    	exceedsBackoffLimit := jobCtx.failed > *job.Spec.BackoffLimit
    	jobCtx.finishedCondition = hasSuccessCriteriaMetCondition(&job)
    
    	// Given that the Job already has the SuccessCriteriaMet condition, the termination condition already had confirmed in another cycle.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jun 10 23:56:37 UTC 2024
    - 77.6K bytes
    - Viewed (0)
Back to top