mirror of https://github.com/k3s-io/k3s
Fix AWS driver fails to provision specified fsType
parent
30ad1028eb
commit
732eb69597
|
@ -120,8 +120,10 @@ func (util *AWSDiskUtil) CreateVolume(c *awsElasticBlockStoreProvisioner, node *
|
|||
}
|
||||
|
||||
fstype := ""
|
||||
if v, ok := c.options.Parameters[volume.VolumeParameterFSType]; ok {
|
||||
fstype = v
|
||||
for k, v := range c.options.Parameters {
|
||||
if strings.ToLower(k) == volume.VolumeParameterFSType {
|
||||
fstype = v
|
||||
}
|
||||
}
|
||||
|
||||
return name, volumeOptions.CapacityGB, labels, fstype, nil
|
||||
|
|
Loading…
Reference in New Issue