- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for FinishedCondition (0.25 sec)
-
pkg/controller/job/util/utils.go
limitations under the License. */ package util import ( batch "k8s.io/api/batch/v1" v1 "k8s.io/api/core/v1" ) // 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) { for _, c := range j.Status.Conditions {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue May 07 09:27:46 UTC 2024 - 1.5K bytes - Viewed (0) -
pkg/controller/job/util/utils_test.go
for name, test := range tests { t.Run(name, func(t *testing.T) { job := &batch.Job{ Status: batch.JobStatus{ Conditions: test.conditions, }, } isJobFinished, conditionType := FinishedCondition(job) if isJobFinished != test.wantJobFinished { if test.wantJobFinished { t.Error("Expected the job to be finished") } else { t.Error("Expected the job to be unfinished") } }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue May 07 09:27:46 UTC 2024 - 4.7K bytes - Viewed (0)