UpCloudLtd / upcloud-csi

Container Storage Interface (CSI) driver for UpCloud's MaxIOPS storage offering
MIT License
13 stars 0 forks source link

feat(snapshotting): improve error handling in snapshotter #79

Closed nate-droid closed 1 year ago

nate-droid commented 1 year ago

This MR adds functionality that checks whether a volume is already in the process of being backed up. This will prevent the Snapshotter from attempting to "double backup"

In accordance with the CSI spec, attempting to create a snapshot while a volume is in a backup state will return with code "Aborted".

Unit tests with several variations have been provided as well.