Skip to content

Commit f0df598

Browse files
committed
test only change
1 parent 0365165 commit f0df598

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

pkg/cvo/status.go

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -371,16 +371,19 @@ func convertErrorToProgressing(history []configv1.UpdateHistory, now time.Time,
371371
return "", "", false
372372
case payload.UpdateEffectFailAfterInterval:
373373
var exceeded []string
374-
threshold := now.Add(-(40 * time.Minute))
374+
//threshold := now.Add(-(40 * time.Minute))
375+
threshold := now.Add(-(15 * time.Minute))
375376
for _, name := range strings.Split(uErr.Name, ", ") {
376377
if payload.COUpdateStartTimesGet(name).Before(threshold) {
377378
exceeded = append(exceeded, name)
378379
}
379380
}
380381
if len(exceeded) > 0 {
381-
return uErr.Reason, fmt.Sprintf("wait has exceeded 40 minutes for these operators: %s", strings.Join(exceeded, ", ")), false
382+
//return uErr.Reason, fmt.Sprintf("wait has exceeded 40 minutes for these operators: %s", strings.Join(exceeded, ", ")), false
383+
return uErr.Reason, fmt.Sprintf("wait has exceeded 15 minutes for these operators: %s", strings.Join(exceeded, ", ")), false
382384
} else {
383-
return uErr.Reason, fmt.Sprintf("waiting up to 40 minutes on %s", uErr.Name), true
385+
//return uErr.Reason, fmt.Sprintf("waiting up to 40 minutes on %s", uErr.Name), true
386+
return uErr.Reason, fmt.Sprintf("waiting up to 15 minutes on %s", uErr.Name), true
384387
}
385388
}
386389
}

0 commit comments

Comments
 (0)