Skip to content

Commit 4a4d3cf

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 83b017b commit 4a4d3cf

File tree

5 files changed

+25
-0
lines changed

5 files changed

+25
-0
lines changed

machine/v1beta1/types_awsprovider.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,13 @@ 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+
// The throughput to provision for a volume, with a maximum of 1,000 MiB/s.
171+
//
172+
// This parameter is valid only for gp3 volumes.
173+
//
174+
// Valid Range: Minimum value of 125. Maximum value of 1000.
175+
// +optional
176+
Throughput *int64 `json:"throughput,omitempty"`
170177
// The size of the volume, in GiB.
171178
//
172179
// 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": "The throughput to provision for a volume, with a maximum of 1,000 MiB/s.\n\nThis parameter is valid only for gp3 volumes.\n\nValid Range: Minimum value of 125. Maximum value of 1000.",
22669+
"type": "integer",
22670+
"format": "int64"
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)