Skip to content

Commit

Permalink
Fix the crd name to correct format which block list accept (#331) (#332)
Browse files Browse the repository at this point in the history
Signed-off-by: wxinyan <[email protected]>

Co-authored-by: wxinyan <[email protected]>
Signed-off-by: wxinyan <[email protected]>

Co-authored-by: wxinyan <[email protected]>
  • Loading branch information
Xinyan Wu and wxinyan authored Apr 5, 2021
1 parent 931b329 commit 121bb7a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/constants/constants.go
Original file line number Diff line number Diff line change
Expand Up @@ -228,9 +228,9 @@ var ResourcesToBlock = map[string]bool{
"networks.netoperator.vmware.com": true,
"nsxerrors.nsx.vmware.com": true,
"nsxlbmonitors.vmware.com": true,
"nsxloadbalancermonitors.vmware.com": true,
"nsxlocks.nsx.vmware.com": true,
"nsxnetworkinterfaces.nsx.vmware.com": true,
"NSXLoadBalancerMonitor": true,
"orders.acme.cert-manager.io": true,
"persistenceinstanceinfoes.psp.wcp.vmware.com": true,
"projects.registryagent.vmware.com": true,
Expand Down
3 changes: 2 additions & 1 deletion pkg/plugin/backup_pvc_action_plugin.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,8 @@ func (p *NewPVCBackupItemAction) Execute(item runtime.Unstructured, backup *vele
}

if blocked {
return nil, nil, errors.Errorf("Resource CRD %s is blocked, skipping", crdName)
p.Log.Infof("Resource CRD %s is blocked, skipping", crdName)
return nil, nil, nil
}

var pvc corev1.PersistentVolumeClaim
Expand Down

0 comments on commit 121bb7a

Please sign in to comment.