Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] removed setstoragequota code from the files, keeping infinte storage quota for a policy in a wcp namespace #3204

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion tests/e2e/csi_snapshot_basic.go
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,6 @@ var _ = ginkgo.Describe("Volume Snapshot Basic Test", func() {
restConfig = getRestConfigClient()
snapc, err = snapclient.NewForConfig(restConfig)
gomega.Expect(err).NotTo(gomega.HaveOccurred())
setStoragePolicyQuota(ctx, restConfig, storagePolicyName, namespace, rqLimit)
}

var datacenters []string
Expand Down
4 changes: 0 additions & 4 deletions tests/e2e/csi_snapshot_negative.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@ var _ = ginkgo.Describe("[block-snapshot-negative] Volume Snapshot Fault-Injecti
snapc *snapclient.Clientset
serviceName string
pandoraSyncWaitTime int
storagePolicyName string
)

ginkgo.BeforeEach(func() {
Expand All @@ -84,16 +83,13 @@ var _ = ginkgo.Describe("[block-snapshot-negative] Volume Snapshot Fault-Injecti
snapc, err = snapclient.NewForConfig(restConfig)
gomega.Expect(err).NotTo(gomega.HaveOccurred())
} else if guestCluster {
storagePolicyName = GetAndExpectStringEnvVar(envStoragePolicyNameForSharedDatastores)
guestClusterRestConfig = getRestConfigClientForGuestCluster(guestClusterRestConfig)
snapc, err = snapclient.NewForConfig(guestClusterRestConfig)
gomega.Expect(err).NotTo(gomega.HaveOccurred())
} else {
storagePolicyName = GetAndExpectStringEnvVar(envStoragePolicyNameForSharedDatastores)
restConfig = getRestConfigClient()
snapc, err = snapclient.NewForConfig(restConfig)
gomega.Expect(err).NotTo(gomega.HaveOccurred())
setStoragePolicyQuota(ctx, restConfig, storagePolicyName, namespace, rqLimit)
}

if os.Getenv(envFullSyncWaitTime) != "" {
Expand Down
1 change: 0 additions & 1 deletion tests/e2e/snapshot_stretched_supervisor.go
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,6 @@ var _ = ginkgo.Describe("Stretched-Supervisor-Snapshot", func() {
restConfig = getRestConfigClient()
snapc, err = snapclient.NewForConfig(restConfig)
gomega.Expect(err).NotTo(gomega.HaveOccurred())
setStoragePolicyQuota(ctx, restConfig, zonalPolicy, namespace, rqLimit)

// fetching default datastore
finder := find.NewFinder(e2eVSphere.Client.Client, false)
Expand Down
4 changes: 0 additions & 4 deletions tests/e2e/snapshot_vmservice_vm.go
Original file line number Diff line number Diff line change
Expand Up @@ -153,10 +153,6 @@ var _ bool = ginkgo.Describe("[snapshot-vmsvc] Snapshot VM Service VM", func() {
snapc, err = snapclient.NewForConfig(restConfig)
gomega.Expect(err).NotTo(gomega.HaveOccurred())

ginkgo.By("Sleeping for a minute for storage policy to get " +
"refresh and added to namespace")
setStoragePolicyQuota(ctx, restConfig, storageClassName, namespace, rqLimit)

// reading full sync wait time
if os.Getenv(envPandoraSyncWaitTime) != "" {
pandoraSyncWaitTime, err = strconv.Atoi(os.Getenv(envPandoraSyncWaitTime))
Expand Down
5 changes: 0 additions & 5 deletions tests/e2e/vmservice_vm.go
Original file line number Diff line number Diff line change
Expand Up @@ -1423,11 +1423,6 @@ var _ bool = ginkgo.Describe("[vmsvc] vm service with csi vol tests", func() {
}
framework.Logf("storageclass name :%s", storageclass.GetName())

ginkgo.By("Sleeping for a minute for storage policy to get " +
"refresh and added to namespace")
time.Sleep(1 * time.Minute)
setStoragePolicyQuota(ctx, restConfig, storagePolicyName, namespace, rqLimit)

if isStorageQuotaFSSEnabled {
totalQuotaUsedBefore, _, storagePolicyQuotaBefore, _, storagePolicyUsageBefore, _ =
getStoragePolicyUsedAndReservedQuotaDetails(ctx, restConfig,
Expand Down