- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for JobComplete (0.09 sec)
-
pkg/controller/job/util/utils_test.go
conditions: []batch.JobCondition{ { Type: batch.JobComplete, Status: v1.ConditionTrue, }, }, wantJobFinished: true, wantConditionType: batch.JobComplete, }, "Job is completed and condition is false": { conditions: []batch.JobCondition{ { Type: batch.JobComplete, Status: v1.ConditionFalse, }, }, wantJobFinished: false,
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue May 07 09:27:46 UTC 2024 - 4.7K bytes - Viewed (0) -
pkg/controller/job/util/utils.go
// Returns false and no condition type otherwise func FinishedCondition(j *batch.Job) (bool, batch.JobConditionType) { for _, c := range j.Status.Conditions { if (c.Type == batch.JobComplete || c.Type == batch.JobFailed) && c.Status == v1.ConditionTrue { return true, c.Type } } return false, "" } // IsJobFinished checks whether the given Job has finished execution.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue May 07 09:27:46 UTC 2024 - 1.5K bytes - Viewed (0) -
cmd/kubeadm/app/phases/upgrade/health.go
return false, nil } for _, cond := range job.Status.Conditions { if cond.Type == batchv1.JobComplete { return true, nil } } lastError = errors.Errorf("no condition of type %v", batchv1.JobComplete) klog.V(2).Infof("Job %q in the namespace %q is not yet complete, retrying", jobName, ns) return false, nil }) if err != nil {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Apr 26 09:18:02 UTC 2024 - 8.8K bytes - Viewed (0) -
pkg/controller/ttlafterfinished/ttlafterfinished_controller_test.go
}, Spec: corev1.PodSpec{ Containers: []corev1.Container{ {Image: "foo/bar"}, }, }, }, }, } if !completionTime.IsZero() { c := batchv1.JobCondition{Type: batchv1.JobComplete, Status: corev1.ConditionTrue, LastTransitionTime: completionTime} j.Status.Conditions = append(j.Status.Conditions, c) } if !failedTime.IsZero() {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sun Jun 18 18:46:26 UTC 2023 - 5.3K bytes - Viewed (0)