File tree Expand file tree Collapse file tree 6 files changed +52
-26
lines changed Expand file tree Collapse file tree 6 files changed +52
-26
lines changed Original file line number Diff line number Diff line change @@ -247,9 +247,10 @@ type AWSMachineSpec struct {
247
247
HostAffinity * string `json:"hostAffinity,omitempty"`
248
248
249
249
// CapacityReservationPreference specifies the preference for use of Capacity Reservations by the instance. Valid values include:
250
- // "Open" (default) : The instance may make use of open Capacity Reservations that match its AZ and InstanceType
250
+ // "Open": The instance may make use of open Capacity Reservations that match its AZ and InstanceType
251
251
// "None": The instance may not make use of any Capacity Reservations. This is to conserve open reservations for desired workloads
252
252
// "CapacityReservationsOnly": The instance will only run if matched or targeted to a Capacity Reservation
253
+ // +kubebuilder:validation:Enum="";None;CapacityReservationsOnly;Open
253
254
// +optional
254
255
CapacityReservationPreference CapacityReservationPreference `json:"capacityReservationPreference,omitempty"`
255
256
}
Original file line number Diff line number Diff line change @@ -645,16 +645,22 @@ spec:
645
645
Reservation into which the instance should be launched.
646
646
type : string
647
647
capacityReservationPreference :
648
+ allOf :
649
+ - enum :
650
+ - " "
651
+ - None
652
+ - CapacityReservationsOnly
653
+ - Open
654
+ - enum :
655
+ - " "
656
+ - None
657
+ - CapacityReservationsOnly
658
+ - Open
648
659
description : |-
649
660
CapacityReservationPreference specifies the preference for use of Capacity Reservations by the instance. Valid values include:
650
- "Open" (default) : The instance may make use of open Capacity Reservations that match its AZ and InstanceType
661
+ "Open": The instance may make use of open Capacity Reservations that match its AZ and InstanceType
651
662
"None": The instance may not make use of any Capacity Reservations. This is to conserve open reservations for desired workloads
652
663
"CapacityReservationsOnly": The instance will only run if matched or targeted to a Capacity Reservation
653
- enum :
654
- - " "
655
- - None
656
- - CapacityReservationsOnly
657
- - Open
658
664
type : string
659
665
iamInstanceProfile :
660
666
description : |-
Original file line number Diff line number Diff line change @@ -642,16 +642,22 @@ spec:
642
642
into which the instance should be launched.
643
643
type : string
644
644
capacityReservationPreference :
645
+ allOf :
646
+ - enum :
647
+ - " "
648
+ - None
649
+ - CapacityReservationsOnly
650
+ - Open
651
+ - enum :
652
+ - " "
653
+ - None
654
+ - CapacityReservationsOnly
655
+ - Open
645
656
description : |-
646
657
CapacityReservationPreference specifies the preference for use of Capacity Reservations by the instance. Valid values include:
647
- "Open" (default) : The instance may make use of open Capacity Reservations that match its AZ and InstanceType
658
+ "Open": The instance may make use of open Capacity Reservations that match its AZ and InstanceType
648
659
"None": The instance may not make use of any Capacity Reservations. This is to conserve open reservations for desired workloads
649
660
"CapacityReservationsOnly": The instance will only run if matched or targeted to a Capacity Reservation
650
- enum :
651
- - " "
652
- - None
653
- - CapacityReservationsOnly
654
- - Open
655
661
type : string
656
662
cloudInit :
657
663
description : |-
Original file line number Diff line number Diff line change @@ -561,16 +561,22 @@ spec:
561
561
Reservation into which the instance should be launched.
562
562
type : string
563
563
capacityReservationPreference :
564
+ allOf :
565
+ - enum :
566
+ - " "
567
+ - None
568
+ - CapacityReservationsOnly
569
+ - Open
570
+ - enum :
571
+ - " "
572
+ - None
573
+ - CapacityReservationsOnly
574
+ - Open
564
575
description : |-
565
576
CapacityReservationPreference specifies the preference for use of Capacity Reservations by the instance. Valid values include:
566
- "Open" (default) : The instance may make use of open Capacity Reservations that match its AZ and InstanceType
577
+ "Open": The instance may make use of open Capacity Reservations that match its AZ and InstanceType
567
578
"None": The instance may not make use of any Capacity Reservations. This is to conserve open reservations for desired workloads
568
579
"CapacityReservationsOnly": The instance will only run if matched or targeted to a Capacity Reservation
569
- enum :
570
- - " "
571
- - None
572
- - CapacityReservationsOnly
573
- - Open
574
580
type : string
575
581
cloudInit :
576
582
description : |-
Original file line number Diff line number Diff line change @@ -654,16 +654,22 @@ spec:
654
654
Reservation into which the instance should be launched.
655
655
type : string
656
656
capacityReservationPreference :
657
+ allOf :
658
+ - enum :
659
+ - " "
660
+ - None
661
+ - CapacityReservationsOnly
662
+ - Open
663
+ - enum :
664
+ - " "
665
+ - None
666
+ - CapacityReservationsOnly
667
+ - Open
657
668
description : |-
658
669
CapacityReservationPreference specifies the preference for use of Capacity Reservations by the instance. Valid values include:
659
- "Open" (default) : The instance may make use of open Capacity Reservations that match its AZ and InstanceType
670
+ "Open": The instance may make use of open Capacity Reservations that match its AZ and InstanceType
660
671
"None": The instance may not make use of any Capacity Reservations. This is to conserve open reservations for desired workloads
661
672
"CapacityReservationsOnly": The instance will only run if matched or targeted to a Capacity Reservation
662
- enum :
663
- - " "
664
- - None
665
- - CapacityReservationsOnly
666
- - Open
667
673
type : string
668
674
iamInstanceProfile :
669
675
description : |-
Original file line number Diff line number Diff line change @@ -148,9 +148,10 @@ type AWSLaunchTemplate struct {
148
148
MarketType infrav1.MarketType `json:"marketType,omitempty"`
149
149
150
150
// CapacityReservationPreference specifies the preference for use of Capacity Reservations by the instance. Valid values include:
151
- // "Open" (default) : The instance may make use of open Capacity Reservations that match its AZ and InstanceType
151
+ // "Open": The instance may make use of open Capacity Reservations that match its AZ and InstanceType
152
152
// "None": The instance may not make use of any Capacity Reservations. This is to conserve open reservations for desired workloads
153
153
// "CapacityReservationsOnly": The instance will only run if matched or targeted to a Capacity Reservation
154
+ // +kubebuilder:validation:Enum="";None;CapacityReservationsOnly;Open
154
155
// +optional
155
156
CapacityReservationPreference infrav1.CapacityReservationPreference `json:"capacityReservationPreference,omitempty"`
156
157
}
You can’t perform that action at this time.
0 commit comments