Don't take filesystem overhead into account for block devices
@@ -2021,6 +2021,9 @@ func (c *VMIController) getFilesystemOverhead(pvc *k8sv1.PersistentVolumeClaim)
if !ok {
return "0", fmt.Errorf("Failed to convert CDIConfig object %v to type CDIConfig", cdiConfigInterface)
}
+ if pvc.Spec.VolumeMode != nil && *pvc.Spec.VolumeMode == k8sv1.PersistentVolumeBlock {
+ return "0", nil
+ }
scName := pvc.Spec.StorageClassName
if scName == nil {
return cdiConfig.Status.FilesystemOverhead.Global, nil
