Skip to content

Commit 35cf423

Browse files
author
Thirumalesh Aaraveti
committed
Added the capacity reservation id
Removed the tests by verify-gen
1 parent dc07755 commit 35cf423

12 files changed

+33
-29
lines changed

api/v1beta1/awscluster_conversion.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@ func (src *AWSCluster) ConvertTo(dstRaw conversion.Hub) error {
104104
dst.Spec.NetworkSpec.VPC.EmptyRoutesDefaultVPCSecurityGroup = restored.Spec.NetworkSpec.VPC.EmptyRoutesDefaultVPCSecurityGroup
105105
dst.Spec.NetworkSpec.VPC.PrivateDNSHostnameTypeOnLaunch = restored.Spec.NetworkSpec.VPC.PrivateDNSHostnameTypeOnLaunch
106106
dst.Spec.NetworkSpec.VPC.CarrierGatewayID = restored.Spec.NetworkSpec.VPC.CarrierGatewayID
107+
dst.Spec.CapacityReservationID = restored.Spec.CapacityReservationID
107108

108109
if restored.Spec.NetworkSpec.VPC.ElasticIPPool != nil {
109110
if dst.Spec.NetworkSpec.VPC.ElasticIPPool == nil {

api/v1beta1/zz_generated.conversion.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.

api/v1beta2/awscluster_types.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,10 @@ type AWSClusterSpec struct {
111111
// BootstrapFormatIgnition feature flag to be enabled).
112112
// +optional
113113
S3Bucket *S3Bucket `json:"s3Bucket,omitempty"`
114+
115+
// CapacityReservationID specifies the target Capacity Reservation into which the instance should be launched.
116+
// +optional
117+
CapacityReservationID string `json:"capacityReservationId,omitempty"`
114118
}
115119

116120
// AWSIdentityKind defines allowed AWS identity types.

api/v1beta2/awsmachine_types.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -194,8 +194,7 @@ type AWSMachineSpec struct {
194194
// +optional
195195
PrivateDNSName *PrivateDNSName `json:"privateDnsName,omitempty"`
196196

197-
// CapacityReservationID specifies the instance that should be launched in the
198-
// reserved compute capacity.
197+
// CapacityReservationID specifies the target Capacity Reservation into which the instance should be launched.
199198
// +optional
200199
CapacityReservationID string `json:"capacityReservationId,omitempty"`
201200
}

api/v1beta2/types.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -250,8 +250,7 @@ type Instance struct {
250250
// +optional
251251
PublicIPOnLaunch *bool `json:"publicIPOnLaunch,omitempty"`
252252

253-
// CapacityReservationID specifies the instance that should be launched in the
254-
// reserved compute capacity.
253+
// CapacityReservationID specifies the target Capacity Reservation into which the instance should be launched.
255254
// +optional
256255
CapacityReservationID string `json:"capacityReservationId,omitempty"`
257256
}

config/crd/bases/controlplane.cluster.x-k8s.io_awsmanagedcontrolplanes.yaml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1091,9 +1091,8 @@ spec:
10911091
description: Availability zone of instance
10921092
type: string
10931093
capacityReservationId:
1094-
description: |-
1095-
CapacityReservationID specifies the instance that should be launched in the
1096-
reserved compute capacity.
1094+
description: CapacityReservationID specifies the target Capacity
1095+
Reservation into which the instance should be launched.
10971096
type: string
10981097
ebsOptimized:
10991098
description: Indicates whether the instance is optimized for Amazon
@@ -3100,9 +3099,8 @@ spec:
31003099
description: Availability zone of instance
31013100
type: string
31023101
capacityReservationId:
3103-
description: |-
3104-
CapacityReservationID specifies the instance that should be launched in the
3105-
reserved compute capacity.
3102+
description: CapacityReservationID specifies the target Capacity
3103+
Reservation into which the instance should be launched.
31063104
type: string
31073105
ebsOptimized:
31083106
description: Indicates whether the instance is optimized for Amazon

config/crd/bases/infrastructure.cluster.x-k8s.io_awsclusters.yaml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -958,6 +958,10 @@ spec:
958958
will be the default.
959959
type: string
960960
type: object
961+
capacityReservationId:
962+
description: CapacityReservationID specifies the target Capacity Reservation
963+
into which the instance should be launched.
964+
type: string
961965
controlPlaneEndpoint:
962966
description: ControlPlaneEndpoint represents the endpoint used to
963967
communicate with the control plane.
@@ -2076,9 +2080,8 @@ spec:
20762080
description: Availability zone of instance
20772081
type: string
20782082
capacityReservationId:
2079-
description: |-
2080-
CapacityReservationID specifies the instance that should be launched in the
2081-
reserved compute capacity.
2083+
description: CapacityReservationID specifies the target Capacity
2084+
Reservation into which the instance should be launched.
20822085
type: string
20832086
ebsOptimized:
20842087
description: Indicates whether the instance is optimized for Amazon

config/crd/bases/infrastructure.cluster.x-k8s.io_awsclustertemplates.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -549,6 +549,10 @@ spec:
549549
will be the default.
550550
type: string
551551
type: object
552+
capacityReservationId:
553+
description: CapacityReservationID specifies the target Capacity
554+
Reservation into which the instance should be launched.
555+
type: string
552556
controlPlaneEndpoint:
553557
description: ControlPlaneEndpoint represents the endpoint
554558
used to communicate with the control plane.

config/crd/bases/infrastructure.cluster.x-k8s.io_awsmachines.yaml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -625,9 +625,8 @@ spec:
625625
type: string
626626
type: object
627627
capacityReservationId:
628-
description: |-
629-
CapacityReservationID specifies the instance that should be launched in the
630-
reserved compute capacity.
628+
description: CapacityReservationID specifies the target Capacity Reservation
629+
into which the instance should be launched.
631630
type: string
632631
cloudInit:
633632
description: |-

config/crd/bases/infrastructure.cluster.x-k8s.io_awsmachinetemplates.yaml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -555,9 +555,8 @@ spec:
555555
type: string
556556
type: object
557557
capacityReservationId:
558-
description: |-
559-
CapacityReservationID specifies the instance that should be launched in the
560-
reserved compute capacity.
558+
description: CapacityReservationID specifies the target Capacity
559+
Reservation into which the instance should be launched.
561560
type: string
562561
cloudInit:
563562
description: |-

0 commit comments

Comments
 (0)