Commit fca4149c
fca4149cd089Merged
Svyatoslav Dumchenko <[email protected]> ยท 4 years ago ยท 1 file ยท ~1 modified
Description
fix: allow setting failures for jobs
Details
- Commit
- fca4149cd089
- Parent
- 2293c29592ec
pkg/kubedog/multitrack.gomodifiedView file
@@ -51,7 +51,7 @@
5151
AllowFailuresCount: new(int),5252
FailureThresholdSeconds: new(int),5353
}54-
*spec.AllowFailuresCount = 154+
*spec.AllowFailuresCount = 05555
*spec.FailureThresholdSeconds = 05656
5757
// Override by annotations@@ -128,10 +128,6 @@
128128
}129129
130130
func (r *Resource) handleAnnotationFailuresAllowedPerReplica(value string, spec *multitrack.MultitrackSpec) error {131-
if r.Kind == "Job" {132-
return fmt.Errorf("%s is not supported for jobs", FailuresAllowedPerReplicaAnnoName)133-
}134-
135131
v, err := strconv.ParseUint(value, 10, 32)136132
if err != nil {137133
return fmt.Errorf("failed to parse %s as uint: %w", value, err)