From 6bb42dd5170b7535737f3177489e9da53737632a Mon Sep 17 00:00:00 2001 From: vimystic <122659254+vimystic@users.noreply.github.com> Date: Tue, 19 Nov 2024 23:09:42 -0700 Subject: [PATCH] Note: this is incorrect since PVC allocations start from 0, only the naming will start from spec.ordinal.start --- internal/fullnode/pvc_control.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/fullnode/pvc_control.go b/internal/fullnode/pvc_control.go index 588daa2b..6786f377 100644 --- a/internal/fullnode/pvc_control.go +++ b/internal/fullnode/pvc_control.go @@ -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 := crd.Spec.Ordinal.Start; i < crd.Spec.Ordinal.Start+crd.Spec.Replicas; i++ { + for i := int32(0); i < crd.Spec.Replicas; i++ { name := pvcName(crd, i) found := false for _, pvc := range currentPVCs {