Skip to content

Commit ab99e54

Browse files
committed
AWS: Add the ability to configure throughput on GP3 volumes
GP3 volumes have the ability to configure throughput from 125 MiB/s to 1000 MiB/s. This allows the ability to set this at install time in the install-config. https://issues.redhat.com/browse/CORS-4212
1 parent bc748ef commit ab99e54

File tree

5 files changed

+29
-0
lines changed

5 files changed

+29
-0
lines changed

machine/v1beta1/types_awsprovider.go

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,17 @@ type EBSBlockDeviceSpec struct {
167167
// it is not used in requests to create gp2, st1, sc1, or standard volumes.
168168
// +optional
169169
Iops *int64 `json:"iops,omitempty"`
170+
// throughput to provision in MiB/s supported for the volume type. Not applicable to all types.
171+
//
172+
// This parameter is valid only for gp3 volumes.
173+
// Valid Range: Minimum value of 125. Maximum value of 1000.
174+
//
175+
// When omitted, this means no opinion, and the platform is left to
176+
// choose a reasonable default, which is subject to change ov4er time.
177+
// The current default is 125.
178+
//
179+
// +optional
180+
Throughput *int32 `json:"throughput,omitempty"`
170181
// The size of the volume, in GiB.
171182
//
172183
// Constraints: 1-16384 for General Purpose SSD (gp2), 4-16384 for Provisioned

machine/v1beta1/zz_generated.deepcopy.go

Lines changed: 5 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

machine/v1beta1/zz_generated.swagger_doc_generated.go

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

openapi/generated_openapi/zz_generated.openapi.go

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

openapi/openapi.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22664,6 +22664,11 @@
2266422664
"default": {},
2266522665
"$ref": "#/definitions/com.github.openshift.api.machine.v1beta1.AWSResourceReference"
2266622666
},
22667+
"throughput": {
22668+
"description": "throughput to provision in MiB/s supported for the volume type. Not applicable to all types.\n\nThis parameter is valid only for gp3 volumes. Valid Range: Minimum value of 125. Maximum value of 1000.\n\nWhen omitted, this means no opinion, and the platform is left to choose a reasonable default, which is subject to change ov4er time. The current default is 125.",
22669+
"type": "integer",
22670+
"format": "int32"
22671+
},
2266722672
"volumeSize": {
2266822673
"description": "The size of the volume, in GiB.\n\nConstraints: 1-16384 for General Purpose SSD (gp2), 4-16384 for Provisioned IOPS SSD (io1), 500-16384 for Throughput Optimized HDD (st1), 500-16384 for Cold HDD (sc1), and 1-1024 for Magnetic (standard) volumes. If you specify a snapshot, the volume size must be equal to or larger than the snapshot size.\n\nDefault: If you're creating the volume from a snapshot and don't specify a volume size, the default is the snapshot size.",
2266922674
"type": "integer",

0 commit comments

Comments
 (0)