Skip to content

Commit

Permalink
Merge pull request #593 from deepakkinni/topic/dkinni/block_quota_v1
Browse files Browse the repository at this point in the history
Block Storage Quota related CRs from Supervisor namespace backup
  • Loading branch information
deepakkinni authored Nov 15, 2024
2 parents ee18347 + 195a56a commit 434b213
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/supervisor-notes.md
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,10 @@ The default list of blocked resources in configmap is:
wcpmachinetemplates.infrastructure.cluster.vmware.com
wcpnamespaces.appplatform.wcp.vmware.com
webconsolerequests.vmoperator.vmware.com
storagequotaperiodicsyncs.cns.vmware.com
storagepolicyusages.cns.vmware.com
storagepolicyquotas.cns.vmware.com
storagequotas.cns.vmware.com

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

Expand Down
6 changes: 6 additions & 0 deletions pkg/constants/constants.go
Original file line number Diff line number Diff line change
Expand Up @@ -331,6 +331,12 @@ var ResourcesToBlock = map[string]bool{
"downloads.datamover.cnsdp.vmware.com": true,
"snapshots.backupdriver.cnsdp.vmware.com": true,
"uploads.datamover.cnsdp.vmware.com": true,

// StorageQuota resources
"storagequotaperiodicsyncs.cns.vmware.com": true,
"storagepolicyusages.cns.vmware.com": true,
"storagepolicyquotas.cns.vmware.com": true,
"storagequotas.cns.vmware.com": true,
}

var ResourcesToBlockOnRestore = map[string]bool{
Expand Down

0 comments on commit 434b213

Please sign in to comment.