Skip to content

Commit

Permalink
Add missing namespace to the pvc list command
Browse files Browse the repository at this point in the history
This change ensure we'll be able to resize the merger and the executor.

Change-Id: I88c9e3429c6caf319ee24601cdf67ba245a2bdd0
  • Loading branch information
TristanCacqueray committed Sep 6, 2024
1 parent 2cb2685 commit e89d0f5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion controllers/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e89d0f5

Please sign in to comment.