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
590
-
iflen(exceeded) >0&&!machineConfig {
591
-
returnslowCOUpdatePrefix+uErr.Reason, fmt.Sprintf("waiting on %s over 30 minutes which is longer than expected", strings.Join(exceeded, ", ")), true
592
-
}
593
-
iflen(exceeded) >0&&machineConfig {
594
-
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
595
-
}
596
-
iflen(exceeded) ==0&&machineConfig {
597
-
returnslowCOUpdatePrefix+uErr.Reason, "waiting on machine-config over 90 minutes which is longer than expected", true
598
-
}
599
-
returnuErr.Reason, fmt.Sprintf("waiting on %s", strings.Join(names, ", ")), true
funcconvertErrorToProgressingForUpdateEffectNone(uErr*payload.UpdateError, now time.Time) (string, string, bool) {
578
+
varexceeded []string
579
+
names:=uErr.Names
580
+
iflen(names) ==0 {
581
+
names= []string{uErr.Name}
582
+
}
583
+
varmachineConfigbool
584
+
for_, name:=rangenames {
585
+
m:=30*time.Minute
586
+
// It takes longer to upgrade MCO
587
+
ifname=="machine-config" {
588
+
m=3*m
589
+
}
590
+
t:=payload.COUpdateStartTimesGet(name)
591
+
if (!t.IsZero()) &&t.Before(now.Add(-(m))) {
592
+
ifname=="machine-config" {
593
+
machineConfig=true
594
+
} else {
611
595
exceeded=append(exceeded, name)
612
596
}
613
597
}
614
-
iflen(exceeded) >0 {
615
-
returnuErr.Reason, fmt.Sprintf("wait has exceeded 40 minutes for these operators: %s", strings.Join(exceeded, ", ")), false
616
-
} else {
617
-
returnuErr.Reason, fmt.Sprintf("waiting up to 40 minutes on %s", uErr.Name), true
598
+
}
599
+
// returns true in those slow cases because it is still only a suspicion
600
+
iflen(exceeded) >0&&!machineConfig {
601
+
returnslowCOUpdatePrefix+uErr.Reason, fmt.Sprintf("waiting on %s over 30 minutes which is longer than expected", strings.Join(exceeded, ", ")), true
602
+
}
603
+
iflen(exceeded) >0&&machineConfig {
604
+
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
605
+
}
606
+
iflen(exceeded) ==0&&machineConfig {
607
+
returnslowCOUpdatePrefix+uErr.Reason, "waiting on machine-config over 90 minutes which is longer than expected", true
608
+
}
609
+
returnuErr.Reason, fmt.Sprintf("waiting on %s", strings.Join(names, ", ")), true
610
+
}
611
+
612
+
funcconvertErrorToProgressingForUpdateEffectFailAfterInterval(uErr*payload.UpdateError, now time.Time) (string, string, bool) {
0 commit comments