Fix PvcNotFoundError type assertion
@@ -417,7 +417,7 @@ func (t *templateService) addPVCToLaunchManifest(volume v1.Volume, claimName str
return err
} else if !exists {
logger.Errorf("didn't find PVC %v", claimName)
- return PvcNotFoundError(fmt.Errorf("didn't find PVC %v", claimName))
+ return PvcNotFoundError{Reason: fmt.Sprintf("didn't find PVC %v", claimName)}
} else if isBlock {
devicePath := filepath.Join(string(filepath.Separator), "dev", volume.Name)
device := k8sv1.VolumeDevice{
