Skip to content

Commit 3978d01

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 2000 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 50e2ece commit 3978d01

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
@@ -213,6 +213,17 @@ type EBSBlockDeviceSpec struct {
213213
// it is not used in requests to create gp2, st1, sc1, or standard volumes.
214214
// +optional
215215
Iops *int64 `json:"iops,omitempty"`
216+
// throughputMib to provision in MiB/s supported for the volume type. Not applicable to all types.
217+
//
218+
// This parameter is valid only for gp3 volumes.
219+
// Valid Range: Minimum value of 125. Maximum value of 2000.
220+
//
221+
// When omitted, this means no opinion, and the platform is left to
222+
// choose a reasonable default, which is subject to change over time.
223+
// The current default is 125.
224+
//
225+
// +optional
226+
ThroughputMib *int32 `json:"throughputMib,omitempty"`
216227
// The size of the volume, in GiB.
217228
//
218229
// 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
@@ -23311,6 +23311,11 @@
2331123311
"default": {},
2331223312
"$ref": "#/definitions/com.github.openshift.api.machine.v1beta1.AWSResourceReference"
2331323313
},
23314+
"throughputMib": {
23315+
"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 2000.\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.",
23316+
"type": "integer",
23317+
"format": "int32"
23318+
},
2331423319
"volumeSize": {
2331523320
"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.",
2331623321
"type": "integer",

0 commit comments

Comments
 (0)