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

Block Storage Quota related CRs from Supervisor namespace backup #593

Merged
Merged
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
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
Loading