Merge pull request #90608 from huffmanca/update-default-fstype-cinder

Updates the fstype of Cinder volumes to be ext4 if nil
This commit is contained in:
Kubernetes Prow Robot
2020-05-15 08:57:37 -07:00
committed by GitHub

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