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())