File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,6 @@ package store
19
19
import (
20
20
"context"
21
21
"strconv"
22
- "strings"
23
22
24
23
basemetrics "k8s.io/component-base/metrics"
25
24
@@ -430,5 +429,5 @@ func failureReason(jc *v1batch.JobCondition, reason string) bool {
430
429
if jc == nil {
431
430
return false
432
431
}
433
- return strings . EqualFold ( jc .Reason , reason )
432
+ return jc .Reason == reason
434
433
}
Original file line number Diff line number Diff line change @@ -210,7 +210,7 @@ func TestJobStore(t *testing.T) {
210
210
kube_job_status_active{job_name="FailedJob1",namespace="ns1"} 0
211
211
kube_job_status_completion_time{job_name="FailedJob1",namespace="ns1"} 1.495810807e+09
212
212
kube_job_status_failed{job_name="FailedJob1",namespace="ns1",reason="BackoffLimitExceeded"} 1
213
- kube_job_status_failed{job_name="FailedJob1",namespace="ns1",reason="DeadLineExceeded "} 0
213
+ kube_job_status_failed{job_name="FailedJob1",namespace="ns1",reason="DeadlineExceeded "} 0
214
214
kube_job_status_failed{job_name="FailedJob1",namespace="ns1",reason="Evicted"} 0
215
215
kube_job_status_start_time{job_name="FailedJob1",namespace="ns1"} 1.495807207e+09
216
216
kube_job_status_succeeded{job_name="FailedJob1",namespace="ns1"} 0
You can’t perform that action at this time.
0 commit comments