From 6c768fd0035d9079927e54a9ec84185c7a6d3c15 Mon Sep 17 00:00:00 2001 From: rakeshgm Date: Wed, 31 Jul 2024 14:31:09 +0530 Subject: [PATCH] fix volsnap version Signed-off-by: rakeshgm --- internal/controller/volumereplicationgroup_controller.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/controller/volumereplicationgroup_controller.go b/internal/controller/volumereplicationgroup_controller.go index 8e4f944a62..bf5f2d404f 100644 --- a/internal/controller/volumereplicationgroup_controller.go +++ b/internal/controller/volumereplicationgroup_controller.go @@ -15,7 +15,7 @@ import ( volrep "github.com/csi-addons/kubernetes-csi-addons/apis/replication.storage/v1alpha1" "github.com/google/uuid" - snapv1 "github.com/kubernetes-csi/external-snapshotter/client/v4/apis/volumesnapshot/v1" + snapv1 "github.com/kubernetes-csi/external-snapshotter/client/v7/apis/volumesnapshot/v1" "github.com/ramendr/ramen/internal/controller/kubeobjects" "github.com/ramendr/ramen/internal/controller/kubeobjects/velero" "golang.org/x/exp/maps" // TODO replace with "maps" in go1.21+ @@ -741,7 +741,7 @@ func (v *VRGInstance) filterSyncPVCs(pvcList *corev1.PersistentVolumeClaimList) if err != nil { return err } - + if len(peerClass.StorageID) != 1 { return fmt.Errorf("no StorageID found in Sync PeerClass") }