We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 1af81c2 + 9e598bd commit aa8f287Copy full SHA for aa8f287
pkg/controller/statefulset/stateful_set_control.go
@@ -566,8 +566,9 @@ func (ssc *defaultStatefulSetControl) updateStatefulSet(
566
}
567
568
// for any empty indices in the sequence [0,set.Spec.Replicas) create a new Pod at the correct revision
569
- for ord := getStartOrdinal(set); ord <= getEndOrdinal(set); ord++ {
570
- replicaIdx := ord - getStartOrdinal(set)
+ start, end := getStartOrdinal(set), getEndOrdinal(set)
+ for ord := start; ord <= end; ord++ {
571
+ replicaIdx := ord - start
572
if replicas[replicaIdx] == nil {
573
replicas[replicaIdx] = newVersionedStatefulSetPod(
574
currentSet,
0 commit comments