From 9eb52a853e8c6f2e93e5b159ec6f4f630deef161 Mon Sep 17 00:00:00 2001 From: Seth Jennings Date: Wed, 5 Mar 2025 13:04:38 -0600 Subject: [PATCH] add throughput field to EBSBlockDevice in machine-api --- machine/v1beta1/types_awsprovider.go | 5 +++++ machine/v1beta1/zz_generated.deepcopy.go | 5 +++++ openapi/generated_openapi/zz_generated.openapi.go | 7 +++++++ openapi/openapi.json | 5 +++++ 4 files changed, 22 insertions(+) diff --git a/machine/v1beta1/types_awsprovider.go b/machine/v1beta1/types_awsprovider.go index 4291b9e8025..e62cbda459f 100644 --- a/machine/v1beta1/types_awsprovider.go +++ b/machine/v1beta1/types_awsprovider.go @@ -165,6 +165,11 @@ type EBSBlockDeviceSpec struct { // it is not used in requests to create gp2, st1, sc1, or standard volumes. // +optional Iops *int64 `json:"iops,omitempty"` + // Throughput to provision in MiB/s. This parameter is valid only for gp3 volumes. + // + // Constraints: 125-1000 for General Purpose SSD (gp3) + // +optional + Throughput *int64 `json:"throughput,omitempty"` // The size of the volume, in GiB. // // Constraints: 1-16384 for General Purpose SSD (gp2), 4-16384 for Provisioned diff --git a/machine/v1beta1/zz_generated.deepcopy.go b/machine/v1beta1/zz_generated.deepcopy.go index ba9aae81e2e..b48dcddf08c 100644 --- a/machine/v1beta1/zz_generated.deepcopy.go +++ b/machine/v1beta1/zz_generated.deepcopy.go @@ -534,6 +534,11 @@ func (in *EBSBlockDeviceSpec) DeepCopyInto(out *EBSBlockDeviceSpec) { *out = new(int64) **out = **in } + if in.Throughput != nil { + in, out := &in.Throughput, &out.Throughput + *out = new(int64) + **out = **in + } if in.VolumeSize != nil { in, out := &in.VolumeSize, &out.VolumeSize *out = new(int64) diff --git a/openapi/generated_openapi/zz_generated.openapi.go b/openapi/generated_openapi/zz_generated.openapi.go index f8bbb3a4a34..2962ea80eb0 100644 --- a/openapi/generated_openapi/zz_generated.openapi.go +++ b/openapi/generated_openapi/zz_generated.openapi.go @@ -36967,6 +36967,13 @@ func schema_openshift_api_machine_v1beta1_EBSBlockDeviceSpec(ref common.Referenc Format: "int64", }, }, + "throughput": { + SchemaProps: spec.SchemaProps{ + Description: "Throughput to provision in MiB/s. This parameter is valid only for gp3 volumes.\n\nConstraints: 125-1000 for General Purpose SSD (gp3)", + Type: []string{"integer"}, + Format: "int64", + }, + }, "volumeSize": { SchemaProps: spec.SchemaProps{ 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.", diff --git a/openapi/openapi.json b/openapi/openapi.json index 24945234fde..9e8b4a69f86 100644 --- a/openapi/openapi.json +++ b/openapi/openapi.json @@ -21350,6 +21350,11 @@ "default": {}, "$ref": "#/definitions/com.github.openshift.api.machine.v1beta1.AWSResourceReference" }, + "throughput": { + "description": "Throughput to provision in MiB/s. This parameter is valid only for gp3 volumes.\n\nConstraints: 125-1000 for General Purpose SSD (gp3)", + "type": "integer", + "format": "int64" + }, "volumeSize": { "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.", "type": "integer",