vmware-tanzu / velero-plugin-for-vsphere

Plugin to support Velero on vSphere
Other
58 stars 50 forks source link

Omit NSX Operator VPC CRs from Backup #577

Closed ihgann closed 1 month ago

ihgann commented 1 month ago

This change prevents Velero Backup from backing up the following NSX Operator CRs to support the VPC topology, which can be found at https://github.com/vmware-tanzu/nsx-operator/tree/main/pkg/apis.

Additionally, the following Pod annotations are stripped on backup, as added via https://github.com/vmware-tanzu/nsx-operator/blob/main/pkg/controllers/pod/pod_controller.go.

What this PR does / why we need it:

This change adds newly-constructed NSX Operator VPC-related Custom Resources to be omitted from Velero backups. This is important to remain consistent with other network topologies - desiring to prevent network-related backups in favor of a re-create of the underlying network connectivity upon Velero restore.

Which issue(s) this PR fixes:

n/a

Special notes for your reviewer:

n/a

Does this PR introduce a user-facing change?:

NONE