Avoid including non-csi volume ad part of csi's GetBackupStatus API.
@@ -548,8 +548,11 @@ func (c *csi) GetBackupStatus(backup *storkapi.ApplicationBackup) ([]*storkapi.A
vsContentMap := make(map[string]*kSnapshotv1beta1.VolumeSnapshotContent)
vsClassMap := make(map[string]*kSnapshotv1beta1.VolumeSnapshotClass)
for _, vInfo := range backup.Status.Volumes {
+ if vInfo.DriverName != storkCSIDriverName {
+ continue
+ }
// Once a snapshot has been backed up and cleaned up, skip it
- if vInfo.DriverName != storkCSIDriverName || vInfo.Status == storkapi.ApplicationBackupStatusSuccessful {
+ if vInfo.Status == storkapi.ApplicationBackupStatusSuccessful {
volumeInfos = append(volumeInfos, vInfo)
continue
}
