mirror of https://github.com/kubernetes/kops.git
Carry Provisioned IOPS to Terraform and CloudFormation templates
This commit is contained in:
parent
b91db4f360
commit
b7c3da2595
|
|
@ -427,6 +427,7 @@ type terraformBlockDevice struct {
|
||||||
// For root
|
// For root
|
||||||
VolumeType *string `json:"volume_type,omitempty"`
|
VolumeType *string `json:"volume_type,omitempty"`
|
||||||
VolumeSize *int64 `json:"volume_size,omitempty"`
|
VolumeSize *int64 `json:"volume_size,omitempty"`
|
||||||
|
Iops *int64 `json:"iops,omitempty"`
|
||||||
// Encryption
|
// Encryption
|
||||||
Encrypted *bool `json:"encrypted,omitempty"`
|
Encrypted *bool `json:"encrypted,omitempty"`
|
||||||
// Termination
|
// Termination
|
||||||
|
|
@ -493,6 +494,7 @@ func (_ *LaunchConfiguration) RenderTerraform(t *terraform.TerraformTarget, a, e
|
||||||
tf.RootBlockDevice = &terraformBlockDevice{
|
tf.RootBlockDevice = &terraformBlockDevice{
|
||||||
VolumeType: bdm.EbsVolumeType,
|
VolumeType: bdm.EbsVolumeType,
|
||||||
VolumeSize: bdm.EbsVolumeSize,
|
VolumeSize: bdm.EbsVolumeSize,
|
||||||
|
Iops: bdm.EbsVolumeIops,
|
||||||
DeleteOnTermination: fi.Bool(true),
|
DeleteOnTermination: fi.Bool(true),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -576,6 +578,7 @@ type cloudformationBlockDevice struct {
|
||||||
type cloudformationBlockDeviceEBS struct {
|
type cloudformationBlockDeviceEBS struct {
|
||||||
VolumeType *string `json:"VolumeType,omitempty"`
|
VolumeType *string `json:"VolumeType,omitempty"`
|
||||||
VolumeSize *int64 `json:"VolumeSize,omitempty"`
|
VolumeSize *int64 `json:"VolumeSize,omitempty"`
|
||||||
|
Iops *int64 `json:"Iops,omitempty"`
|
||||||
DeleteOnTermination *bool `json:"DeleteOnTermination,omitempty"`
|
DeleteOnTermination *bool `json:"DeleteOnTermination,omitempty"`
|
||||||
Encrypted *bool `json:"Encrypted,omitempty"`
|
Encrypted *bool `json:"Encrypted,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
@ -645,6 +648,7 @@ func (_ *LaunchConfiguration) RenderCloudformation(t *cloudformation.Cloudformat
|
||||||
Ebs: &cloudformationBlockDeviceEBS{
|
Ebs: &cloudformationBlockDeviceEBS{
|
||||||
VolumeType: bdm.EbsVolumeType,
|
VolumeType: bdm.EbsVolumeType,
|
||||||
VolumeSize: bdm.EbsVolumeSize,
|
VolumeSize: bdm.EbsVolumeSize,
|
||||||
|
Iops: bdm.EbsVolumeIops,
|
||||||
DeleteOnTermination: fi.Bool(true),
|
DeleteOnTermination: fi.Bool(true),
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue