Skip to content

Commit 434b213

Browse files
authored
Merge pull request #593 from deepakkinni/topic/dkinni/block_quota_v1
Block Storage Quota related CRs from Supervisor namespace backup
2 parents ee18347 + 195a56a commit 434b213

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

docs/supervisor-notes.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,10 @@ The default list of blocked resources in configmap is:
135135
wcpmachinetemplates.infrastructure.cluster.vmware.com
136136
wcpnamespaces.appplatform.wcp.vmware.com
137137
webconsolerequests.vmoperator.vmware.com
138+
storagequotaperiodicsyncs.cns.vmware.com
139+
storagepolicyusages.cns.vmware.com
140+
storagepolicyquotas.cns.vmware.com
141+
storagequotas.cns.vmware.com
138142

139143
For example, the backup of a Supervisor ```namespace``` with **Tanzu Kubernetes Grid Service** will fail since it contains some of restricted resources listed above.
140144

pkg/constants/constants.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -331,6 +331,12 @@ var ResourcesToBlock = map[string]bool{
331331
"downloads.datamover.cnsdp.vmware.com": true,
332332
"snapshots.backupdriver.cnsdp.vmware.com": true,
333333
"uploads.datamover.cnsdp.vmware.com": true,
334+
335+
// StorageQuota resources
336+
"storagequotaperiodicsyncs.cns.vmware.com": true,
337+
"storagepolicyusages.cns.vmware.com": true,
338+
"storagepolicyquotas.cns.vmware.com": true,
339+
"storagequotas.cns.vmware.com": true,
334340
}
335341

336342
var ResourcesToBlockOnRestore = map[string]bool{

0 commit comments

Comments
 (0)