Skip to content

Commit

Permalink
Block Storage Quota related CRs from Supervisor namespace backup
Browse files Browse the repository at this point in the history
Signed-off-by: Deepak Kinni <[email protected]>
  • Loading branch information
deepakkinni committed Nov 14, 2024
1 parent ee18347 commit 195a56a
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 195a56a

Please sign in to comment.