We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0f8814d commit 2ff1ad5Copy full SHA for 2ff1ad5
1 file changed
pkg/uploader/run.go
@@ -329,7 +329,8 @@ func updateVMIndex(
329
if f.DiskName != "" {
330
pvcName := volumeMap[f.DiskName]
331
if pvcName == "" {
332
- pvcName = f.DiskName
+ // Erroring out if there's a non-PVC volume
333
+ return fmt.Errorf("no PVC found for %s", f.DiskName)
334
}
335
pvcNames = append(pvcNames, pvcName)
336
pvc := &corev1.PersistentVolumeClaim{}
0 commit comments