mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-03 17:30:00 +00:00
Style: Ebs -> EBS
This commit is contained in:
parent
7e758fe441
commit
46f9c2cc3c
@ -580,7 +580,7 @@ type awsInstanceType struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// TODO: Also return number of mounts allowed?
|
// TODO: Also return number of mounts allowed?
|
||||||
func (self *awsInstanceType) getEbsMountDevices() []string {
|
func (self *awsInstanceType) getEBSMountDevices() []string {
|
||||||
// See: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/block-device-mapping-concepts.html
|
// See: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/block-device-mapping-concepts.html
|
||||||
devices := []string{}
|
devices := []string{}
|
||||||
for c := 'f'; c <= 'p'; c++ {
|
for c := 'f'; c <= 'p'; c++ {
|
||||||
@ -675,7 +675,7 @@ func (self *awsInstance) assignMountDevice(volumeId string) (mountDevice string,
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Check all the valid mountpoints to see if any of them are free
|
// Check all the valid mountpoints to see if any of them are free
|
||||||
valid := instanceType.getEbsMountDevices()
|
valid := instanceType.getEBSMountDevices()
|
||||||
chosen := ""
|
chosen := ""
|
||||||
for _, device := range valid {
|
for _, device := range valid {
|
||||||
_, found := self.deviceMappings[device]
|
_, found := self.deviceMappings[device]
|
||||||
|
Loading…
Reference in New Issue
Block a user