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 := ""
|
fstype := ""
|
||||||
if v, ok := c.options.Parameters[volume.VolumeParameterFSType]; ok {
|
for k, v := range c.options.Parameters {
|
||||||
fstype = v
|
if strings.ToLower(k) == volume.VolumeParameterFSType {
|
||||||
|
fstype = v
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return name, volumeOptions.CapacityGB, labels, fstype, nil
|
return name, volumeOptions.CapacityGB, labels, fstype, nil
|
||||||
|
|
Loading…
Reference in New Issue