application clone failing at resource stage
- get volume driverName by looking at pv object
in case of non backup/restore prepareresource calls
@@ -130,6 +130,15 @@ func (r *ResourceCollector) preparePVResourceForApply(
break
}
}
+ // in case of non-restore call make sure resourcecollector
+ // checks proper driver by looking at pv name
+ if driverName == "" {
+ var err error
+ driverName, err = volume.GetPVDriver(&pv)
+ if err != nil {
+ return false, err
+ }
+ }
driver, err := volume.Get(driverName)
if err != nil {
