Skip to content

Commit

Permalink
Update pvc_contro.go to use ordinal start
Browse files Browse the repository at this point in the history
  • Loading branch information
vimystic committed Nov 20, 2024
1 parent df5a242 commit 8be6661
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/fullnode/pvc_control.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ func (control PVCControl) Reconcile(ctx context.Context, reporter kube.Reporter,

dataSources := make(map[int32]*dataSource)
if len(currentPVCs) < int(crd.Spec.Replicas) {
for i := int32(0); i < crd.Spec.Replicas; i++ {
for i := crd.Spec.Ordinal.Start; i < crd.Spec.Ordinal.Start+crd.Spec.Replicas; i++ {
name := pvcName(crd, i)
found := false
for _, pvc := range currentPVCs {
Expand Down

0 comments on commit 8be6661

Please sign in to comment.