Skip to content

Commit 4194778

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 8c9acca commit 4194778

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
@@ -205,6 +205,17 @@ type EBSBlockDeviceSpec struct {
205205
// it is not used in requests to create gp2, st1, sc1, or standard volumes.
206206
// +optional
207207
Iops *int64 `json:"iops,omitempty"`
208+
// throughputMib to provision in MiB/s supported for the volume type. Not applicable to all types.
209+
//
210+
// This parameter is valid only for gp3 volumes.
211+
// Valid Range: Minimum value of 125. Maximum value of 1000.
212+
//
213+
// When omitted, this means no opinion, and the platform is left to
214+
// choose a reasonable default, which is subject to change over time.
215+
// The current default is 125.
216+
//
217+
// +optional
218+
ThroughputMib *int32 `json:"throughputMib,omitempty"`
208219
// The size of the volume, in GiB.
209220
//
210221
// 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
@@ -23284,6 +23284,11 @@
2328423284
"default": {},
2328523285
"$ref": "#/definitions/com.github.openshift.api.machine.v1beta1.AWSResourceReference"
2328623286
},
23287+
"throughputMib": {
23288+
"description": "throughputMib 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 over time. The current default is 125.",
23289+
"type": "integer",
23290+
"format": "int32"
23291+
},
2328723292
"volumeSize": {
2328823293
"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.",
2328923294
"type": "integer",

0 commit comments

Comments
 (0)