Updates the fstype of Cinder volumes to be ext4 if nil

This commit is contained in:
Christian Huffman 2020-04-29 15:48:25 -04:00
parent a26c34e470
commit a29fcc679f

View File

@ -570,6 +570,10 @@ func (c *cinderVolumeProvisioner) Provision(selectedNode *v1.Node, allowedTopolo
return nil, err
}
if fstype == "" {
fstype = "ext4"
}
volumeMode := c.options.PVC.Spec.VolumeMode
if volumeMode != nil && *volumeMode == v1.PersistentVolumeBlock {
// Block volumes should not have any FSType