mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-22 19:31:44 +00:00
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:
commit
ab207be846
@ -570,6 +570,10 @@ func (c *cinderVolumeProvisioner) Provision(selectedNode *v1.Node, allowedTopolo
|
|||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if fstype == "" {
|
||||||
|
fstype = "ext4"
|
||||||
|
}
|
||||||
|
|
||||||
volumeMode := c.options.PVC.Spec.VolumeMode
|
volumeMode := c.options.PVC.Spec.VolumeMode
|
||||||
if volumeMode != nil && *volumeMode == v1.PersistentVolumeBlock {
|
if volumeMode != nil && *volumeMode == v1.PersistentVolumeBlock {
|
||||||
// Block volumes should not have any FSType
|
// Block volumes should not have any FSType
|
||||||
|
Loading…
Reference in New Issue
Block a user