mirror of https://github.com/kubernetes/kops.git
ran make gofmt
This commit is contained in:
parent
66d377f5c4
commit
07397ec2f0
|
@ -63,10 +63,10 @@ func (b *AutoscalingGroupModelBuilder) Build(c *fi.ModelBuilderContext) error {
|
|||
return fmt.Errorf("this case should not get hit, kops.Role not found %s", ig.Spec.Role)
|
||||
}
|
||||
}
|
||||
volumeType := fi.StringValue(ig.Spec.RootVolumeType)
|
||||
volumeType := fi.StringValue(ig.Spec.RootVolumeType)
|
||||
volumeIops := fi.Int32Value(ig.Spec.RootVolumeIops)
|
||||
|
||||
switch volumeType {
|
||||
switch volumeType {
|
||||
case "io1":
|
||||
if volumeIops == 0 {
|
||||
volumeIops = DefaultVolumeIops
|
||||
|
|
|
@ -50,8 +50,8 @@ func (i *BlockDeviceMapping) ToEC2(deviceName string) *ec2.BlockDeviceMapping {
|
|||
if i.EbsDeleteOnTermination != nil || i.EbsVolumeSize != nil || i.EbsVolumeType != nil {
|
||||
o.Ebs = &ec2.EbsBlockDevice{}
|
||||
o.Ebs.DeleteOnTermination = i.EbsDeleteOnTermination
|
||||
o.Ebs.VolumeSize = i.EbsVolumeSize
|
||||
o.Ebs.VolumeType = i.EbsVolumeType
|
||||
o.Ebs.VolumeSize = i.EbsVolumeSize
|
||||
o.Ebs.VolumeType = i.EbsVolumeType
|
||||
}
|
||||
return o
|
||||
}
|
||||
|
@ -75,9 +75,9 @@ func (i *BlockDeviceMapping) ToAutoscaling(deviceName string) *autoscaling.Block
|
|||
if i.EbsDeleteOnTermination != nil || i.EbsVolumeSize != nil || i.EbsVolumeType != nil {
|
||||
o.Ebs = &autoscaling.Ebs{}
|
||||
o.Ebs.DeleteOnTermination = i.EbsDeleteOnTermination
|
||||
o.Ebs.VolumeSize = i.EbsVolumeSize
|
||||
o.Ebs.VolumeType = i.EbsVolumeType
|
||||
o.Ebs.Iops = i.EbsVolumeIops
|
||||
o.Ebs.VolumeSize = i.EbsVolumeSize
|
||||
o.Ebs.VolumeType = i.EbsVolumeType
|
||||
o.Ebs.Iops = i.EbsVolumeIops
|
||||
}
|
||||
|
||||
return o
|
||||
|
|
|
@ -205,7 +205,7 @@ func (e *LaunchConfiguration) buildRootDevice(cloud awsup.AWSCloud) (map[string]
|
|||
EbsVolumeSize: e.RootVolumeSize,
|
||||
EbsVolumeType: e.RootVolumeType,
|
||||
EbsVolumeIops: e.RootVolumeIops,
|
||||
}
|
||||
}
|
||||
|
||||
blockDeviceMappings[rootDeviceName] = rootDeviceMapping
|
||||
|
||||
|
|
Loading…
Reference in New Issue