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.
1 parent e1ad9be commit 9e598bdCopy full SHA for 9e598bd
pkg/controller/statefulset/stateful_set_control.go
@@ -348,8 +348,9 @@ func (ssc *defaultStatefulSetControl) updateStatefulSet(
348
}
349
350
// for any empty indices in the sequence [0,set.Spec.Replicas) create a new Pod at the correct revision
351
- for ord := getStartOrdinal(set); ord <= getEndOrdinal(set); ord++ {
352
- replicaIdx := ord - getStartOrdinal(set)
+ start, end := getStartOrdinal(set), getEndOrdinal(set)
+ for ord := start; ord <= end; ord++ {
353
+ replicaIdx := ord - start
354
if replicas[replicaIdx] == nil {
355
replicas[replicaIdx] = newVersionedStatefulSetPod(
356
currentSet,
0 commit comments