You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// returns true in those slow cases because it is still only a suspicion
584
-
iflen(exceeded) >0&&!machineConfig {
585
-
returnslowCOUpdatePrefix+uErr.Reason, fmt.Sprintf("waiting on %s over 30 minutes which is longer than expected", strings.Join(exceeded, ", ")), true
586
-
}
587
-
iflen(exceeded) >0&&machineConfig {
588
-
returnslowCOUpdatePrefix+uErr.Reason, fmt.Sprintf("waiting on %s over 30 minutes and machine-config over 90 minutes which is longer than expected", strings.Join(exceeded, ", ")), true
589
-
}
590
-
iflen(exceeded) ==0&&machineConfig {
591
-
returnslowCOUpdatePrefix+uErr.Reason, "waiting on machine-config over 90 minutes which is longer than expected", true
592
-
}
593
-
returnuErr.Reason, fmt.Sprintf("waiting on %s", strings.Join(names, ", ")), true
funcconvertErrorToProgressingForUpdateEffectNone(uErr*payload.UpdateError, now time.Time) (string, string, bool) {
572
+
varexceeded []string
573
+
names:=uErr.Names
574
+
iflen(names) ==0 {
575
+
names= []string{uErr.Name}
576
+
}
577
+
varmachineConfigbool
578
+
for_, name:=rangenames {
579
+
m:=30*time.Minute
580
+
// It takes longer to upgrade MCO
581
+
ifname=="machine-config" {
582
+
m=3*m
583
+
}
584
+
t:=payload.COUpdateStartTimesGet(name)
585
+
if (!t.IsZero()) &&t.Before(now.Add(-(m))) {
586
+
ifname=="machine-config" {
587
+
machineConfig=true
588
+
} else {
605
589
exceeded=append(exceeded, name)
606
590
}
607
591
}
608
-
iflen(exceeded) >0 {
609
-
returnuErr.Reason, fmt.Sprintf("wait has exceeded 40 minutes for these operators: %s", strings.Join(exceeded, ", ")), false
610
-
} else {
611
-
returnuErr.Reason, fmt.Sprintf("waiting up to 40 minutes on %s", uErr.Name), true
592
+
}
593
+
// returns true in those slow cases because it is still only a suspicion
594
+
iflen(exceeded) >0&&!machineConfig {
595
+
returnslowCOUpdatePrefix+uErr.Reason, fmt.Sprintf("waiting on %s over 30 minutes which is longer than expected", strings.Join(exceeded, ", ")), true
596
+
}
597
+
iflen(exceeded) >0&&machineConfig {
598
+
returnslowCOUpdatePrefix+uErr.Reason, fmt.Sprintf("waiting on %s over 30 minutes and machine-config over 90 minutes which is longer than expected", strings.Join(exceeded, ", ")), true
599
+
}
600
+
iflen(exceeded) ==0&&machineConfig {
601
+
returnslowCOUpdatePrefix+uErr.Reason, "waiting on machine-config over 90 minutes which is longer than expected", true
602
+
}
603
+
returnuErr.Reason, fmt.Sprintf("waiting on %s", strings.Join(names, ", ")), true
604
+
}
605
+
606
+
funcconvertErrorToProgressingForUpdateEffectFailAfterInterval(uErr*payload.UpdateError, now time.Time) (string, string, bool) {
0 commit comments