diff --git a/pkg/controller/backup_controller.go b/pkg/controller/backup_controller.go index 24787198d..222ae41b3 100644 --- a/pkg/controller/backup_controller.go +++ b/pkg/controller/backup_controller.go @@ -562,10 +562,14 @@ func (c *backupController) runBackup(backup *pkgbackup.Request) error { } if c.volumeSnapshotContentLister != nil { - volumeSnapshotContents, err = c.volumeSnapshotContentLister.List(selector) - if err != nil { - backupLog.Error(err) - + // Since VolumeSnapshotContent objects are not currently labeled, get them by using binding from the VolumeSnapshot + for _, vs := range volumeSnapshots { + vsc, err := c.volumeSnapshotContentLister.Get(*vs.Status.BoundVolumeSnapshotContentName) + if err != nil { + backupLog.Error(err) + continue + } + volumeSnapshotContents = append(volumeSnapshotContents, vsc) } } }