From f19a55a123185134ce87fe937aa9b19c4e33e6d9 Mon Sep 17 00:00:00 2001 From: kavyashree-r Date: Wed, 28 Aug 2024 11:49:13 +0530 Subject: [PATCH] updated utils to use storagepolicyv1alpha1 --- tests/e2e/util.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/e2e/util.go b/tests/e2e/util.go index 4a16536ca0..78ea5cd968 100644 --- a/tests/e2e/util.go +++ b/tests/e2e/util.go @@ -89,7 +89,7 @@ import ( cnsnodevmattachmentv1alpha1 "sigs.k8s.io/vsphere-csi-driver/v3/pkg/apis/cnsoperator/cnsnodevmattachment/v1alpha1" cnsregistervolumev1alpha1 "sigs.k8s.io/vsphere-csi-driver/v3/pkg/apis/cnsoperator/cnsregistervolume/v1alpha1" cnsvolumemetadatav1alpha1 "sigs.k8s.io/vsphere-csi-driver/v3/pkg/apis/cnsoperator/cnsvolumemetadata/v1alpha1" - storagepolicyv1alpha2 "sigs.k8s.io/vsphere-csi-driver/v3/pkg/apis/cnsoperator/storagepolicy/v1alpha2" + storagepolicyv1alpha1 "sigs.k8s.io/vsphere-csi-driver/v3/pkg/apis/cnsoperator/storagepolicy/v1alpha1" k8s "sigs.k8s.io/vsphere-csi-driver/v3/pkg/kubernetes" ) @@ -6989,7 +6989,7 @@ func setStoragePolicyQuota(ctx context.Context, restClientConfig *rest.Config, cnsOperatorClient, err := k8s.NewClientForGroup(ctx, restClientConfig, cnsoperatorv1alpha1.GroupName) gomega.Expect(err).NotTo(gomega.HaveOccurred()) - spq := &storagepolicyv1alpha2.StoragePolicyQuota{} + spq := &storagepolicyv1alpha1.StoragePolicyQuota{} err = cnsOperatorClient.Get(ctx, pkgtypes.NamespacedName{Name: scName + storagePolicyQuota, Namespace: namespace}, spq) gomega.Expect(err).NotTo(gomega.HaveOccurred()) @@ -7008,7 +7008,7 @@ func removeStoragePolicyQuota(ctx context.Context, restClientConfig *rest.Config cnsOperatorClient, err := k8s.NewClientForGroup(ctx, restClientConfig, cnsoperatorv1alpha1.GroupName) gomega.Expect(err).NotTo(gomega.HaveOccurred()) - spq := &storagepolicyv1alpha2.StoragePolicyQuota{} + spq := &storagepolicyv1alpha1.StoragePolicyQuota{} err = cnsOperatorClient.Get(ctx, pkgtypes.NamespacedName{Name: scName + storagePolicyQuota, Namespace: namespace}, spq) gomega.Expect(err).NotTo(gomega.HaveOccurred()) @@ -7019,7 +7019,7 @@ func removeStoragePolicyQuota(ctx context.Context, restClientConfig *rest.Config err = cnsOperatorClient.Update(ctx, spq) gomega.Expect(err).NotTo(gomega.HaveOccurred()) - spq = &storagepolicyv1alpha2.StoragePolicyQuota{} + spq = &storagepolicyv1alpha1.StoragePolicyQuota{} err = cnsOperatorClient.Get(ctx, pkgtypes.NamespacedName{Name: scName + storagePolicyQuota, Namespace: namespace}, spq) gomega.Expect(err).NotTo(gomega.HaveOccurred())