Call dynamic VS content creation unconditionally
Irrespective of any error on the Volume Snapshot object, initiate dynamic VolumeSnapshotContent object creation. If any required parameters are not found, (e.g. missing VS class), the VS content object creation would fail gracefully.
This commit is contained in:
@@ -1145,6 +1145,14 @@ func testUpdateSnapshotClass(ctrl *csiSnapshotCommonController, reactor *snapsho
|
||||
return err
|
||||
}
|
||||
|
||||
func testNewSnapshotContentCreation(ctrl *csiSnapshotCommonController, reactor *snapshotReactor, test controllerTest) error {
|
||||
if err := ctrl.syncUnreadySnapshot(test.initialSnapshots[0]); err != nil {
|
||||
return fmt.Errorf("syncUnreadySnapshot failed: %v", err)
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
var (
|
||||
classEmpty string
|
||||
classGold = "gold"
|
||||
|
Reference in New Issue
Block a user