File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -19,6 +19,7 @@ package store
19
19
import (
20
20
"context"
21
21
"strconv"
22
+ "strings"
22
23
23
24
basemetrics "k8s.io/component-base/metrics"
24
25
39
40
descJobLabelsName = "kube_job_labels"
40
41
descJobLabelsHelp = "Kubernetes labels converted to Prometheus labels."
41
42
descJobLabelsDefaultLabels = []string {"namespace" , "job_name" }
42
- jobFailureReasons = []string {"BackoffLimitExceeded" , "DeadLineExceeded " , "Evicted" }
43
+ jobFailureReasons = []string {"BackoffLimitExceeded" , "DeadlineExceeded " , "Evicted" }
43
44
)
44
45
45
46
func jobMetricFamilies (allowAnnotationsList , allowLabelsList []string ) []generator.FamilyGenerator {
@@ -429,5 +430,5 @@ func failureReason(jc *v1batch.JobCondition, reason string) bool {
429
430
if jc == nil {
430
431
return false
431
432
}
432
- return jc .Reason == reason
433
+ return strings . EqualFold ( jc .Reason , reason )
433
434
}
You can’t perform that action at this time.
0 commit comments