Skip to content

Commit ced46fb

Browse files
committed
[CSI] Make the last part of the backup name unique
1 parent 089775d commit ced46fb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/volume/csi/csi.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,7 @@ func (c *csi) StartBackup(
360360
}
361361

362362
func (c *csi) getBackupSnapshotName(pvc *v1.PersistentVolumeClaim, backup *storkapi.ApplicationBackup) string {
363-
return fmt.Sprintf("%s-%s-%s", snapshotBackupPrefix, getUIDLastSection(pvc.UID), getUIDLastSection(backup.UID))
363+
return fmt.Sprintf("%s-%s-%s", snapshotBackupPrefix, getUIDLastSection(backup.UID), getUIDLastSection(pvc.UID))
364364
}
365365

366366
func (c *csi) snapshotReady(vs *kSnapshotv1beta1.VolumeSnapshot) bool {

0 commit comments

Comments
 (0)