From e89d0f563af234b0683a6725f7d3d6a82b3c5f90 Mon Sep 17 00:00:00 2001 From: Tristan Cacqueray Date: Fri, 6 Sep 2024 11:01:19 -0400 Subject: [PATCH] Add missing namespace to the pvc list command This change ensure we'll be able to resize the merger and the executor. Change-Id: I88c9e3429c6caf319ee24601cdf67ba245a2bdd0 --- controllers/utils.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/controllers/utils.go b/controllers/utils.go index 75f1040..a9f9c82 100644 --- a/controllers/utils.go +++ b/controllers/utils.go @@ -449,7 +449,8 @@ func BaseGetStorageConfOrDefault(storageSpec sfv1.StorageSpec, storageDefault sf func (r *SFUtilContext) reconcileExpandPVCs(serviceName string, newStorageSpec sfv1.StorageSpec) bool { PVCList := &apiv1.PersistentVolumeClaimList{} - err := r.Client.List(r.ctx, PVCList, client.MatchingLabels{"run": serviceName, "app": "sf"}) + selector := client.MatchingLabels{"run": serviceName, "app": "sf"} + err := r.Client.List(r.ctx, PVCList, selector, client.InNamespace(r.ns)) if err != nil { utils.LogE(err, "Unable to get the list of PVC for service "+serviceName) return false