Skip to content

Commit cb382c9

Browse files
Merge pull request #2480 from jhixson74/master_aws_gp3_throughput
CORS-4250: AWS: Add the ability to configure throughput on GP3 volumes
2 parents 0952bf6 + 41ccbe5 commit cb382c9

File tree

5 files changed

+35
-4
lines changed

5 files changed

+35
-4
lines changed

machine/v1beta1/types_awsprovider.go

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,19 @@ 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+
// +kubebuilder:validation:Minimum:=125
226+
// +kubebuilder:validation:Maximum:=2000
227+
// +optional
228+
ThroughputMib *int32 `json:"throughputMib,omitempty"`
216229
// The size of the volume, in GiB.
217230
//
218231
// Constraints: 1-16384 for General Purpose SSD (gp2), 4-16384 for Provisioned
@@ -225,7 +238,7 @@ type EBSBlockDeviceSpec struct {
225238
// a volume size, the default is the snapshot size.
226239
// +optional
227240
VolumeSize *int64 `json:"volumeSize,omitempty"`
228-
// The volume type: gp2, io1, st1, sc1, or standard.
241+
// volumeType can be of type gp2, gp3, io1, st1, sc1, or standard.
229242
// Default: standard
230243
// +optional
231244
VolumeType *string `json:"volumeType,omitempty"`

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: 2 additions & 1 deletion
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: 8 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

openapi/openapi.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23425,13 +23425,18 @@
2342523425
"default": {},
2342623426
"$ref": "#/definitions/com.github.openshift.api.machine.v1beta1.AWSResourceReference"
2342723427
},
23428+
"throughputMib": {
23429+
"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.",
23430+
"type": "integer",
23431+
"format": "int32"
23432+
},
2342823433
"volumeSize": {
2342923434
"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.",
2343023435
"type": "integer",
2343123436
"format": "int64"
2343223437
},
2343323438
"volumeType": {
23434-
"description": "The volume type: gp2, io1, st1, sc1, or standard. Default: standard",
23439+
"description": "volumeType can be of type gp2, gp3, io1, st1, sc1, or standard. Default: standard",
2343523440
"type": "string"
2343623441
}
2343723442
}

0 commit comments

Comments
 (0)