increment restic volumesnapshot count after successful pvb create (#2542)

Signed-off-by: Ashish Amarnath <ashisham@vmware.com>
This commit is contained in:
Ashish Amarnath
2020-05-20 09:05:23 -07:00
committed by GitHub
parent 92cac03a82
commit 532c6c5dc3
2 changed files with 2 additions and 1 deletions
@@ -0,0 +1 @@
increment restic volumesnapshot count after successful pvb create
+1 -1
View File
@@ -158,11 +158,11 @@ func (b *backupper) BackupPodVolumes(backup *velerov1api.Backup, pod *corev1api.
}
volumeBackup := newPodVolumeBackup(backup, pod, volume, repo.Spec.ResticIdentifier, pvc)
numVolumeSnapshots++
if volumeBackup, err = b.repoManager.veleroClient.VeleroV1().PodVolumeBackups(volumeBackup.Namespace).Create(volumeBackup); err != nil {
errs = append(errs, err)
continue
}
numVolumeSnapshots++
}
ForEachVolume: