vmware-tanzu / velero

Backup and migrate Kubernetes applications and their persistent volumes
https://velero.io
Apache License 2.0
8.7k stars 1.4k forks source link

Need for consistency in metadata reported about backed up volumes #5986

Open gsadhani opened 1 year ago

gsadhani commented 1 year ago

Describe the problem/challenge you have

For PVs backed up by Restic, Velero has the following data in PodVolumeBackup CRD:

  1. Pod name
  2. Pod namespace
  3. Persistent Volume Name

For PVs backed up using CSI snapshots, Velero has the following data in the backup location which can be retrieved using CSIBackupVolumeSnapshots DownloadRequest, the data stored is raw content of VolumeSnapshot CRD :

  1. Persistent Volume Claim Name
  2. Volume Snapshot Class Name
  3. Restore Size

There is a need for consistency in reporting data about backed up volumes.

Describe the solution you'd like A easier and generic way to retrieve metadata of backed up PVs, backed using Restic/Kopia or using CSI snapshotting.

Environment:

Vote on this issue!

This is an invitation to the Velero community to vote on issues, you can see the project's top voted issues listed here.
Use the "reaction smiley face" up to the right of this comment to vote.

reasonerjt commented 1 year ago

@gsadhani

Due to historical reasons and some CRDs are not controlled by velero like Volumesnapshot, it may be not realistic to have a unified format.

Let me do some investigation and get back to you for more discussion.

reasonerjt commented 1 year ago

Clarified with Rahul and Astha the consumer should unify different data objects.