File tree Expand file tree Collapse file tree 2 files changed +30
-0
lines changed Expand file tree Collapse file tree 2 files changed +30
-0
lines changed Original file line number Diff line number Diff line change @@ -1586,6 +1586,13 @@ spec:
15861586 required:
15871587 - instanceType
15881588 type: object
1589+ x-kubernetes-validations:
1590+ - message: capacityReservationId may not be set when marketType is Spot
1591+ rule: '!has(self.capacityReservationId) || !has(self.marketType) ||
1592+ self.marketType != ''Spot'''
1593+ - message: capacityReservationId cannot be set when spotMarketOptions
1594+ is specified
1595+ rule: '!has(self.capacityReservationId) || !has(self.spotMarketOptions)'
15891596 status:
15901597 description: AWSMachineStatus defines the observed state of AWSMachine.
15911598 properties:
@@ -6189,6 +6196,14 @@ spec:
61896196 required:
61906197 - instanceType
61916198 type: object
6199+ x-kubernetes-validations:
6200+ - message: capacityReservationId may not be set when marketType
6201+ is Spot
6202+ rule: '!has(self.capacityReservationId) || !has(self.marketType)
6203+ || self.marketType != ''Spot'''
6204+ - message: capacityReservationId cannot be set when spotMarketOptions
6205+ is specified
6206+ rule: '!has(self.capacityReservationId) || !has(self.spotMarketOptions)'
61926207 required:
61936208 - spec
61946209 type: object
Original file line number Diff line number Diff line change @@ -1588,6 +1588,13 @@ data:
15881588 required:
15891589 - instanceType
15901590 type: object
1591+ x-kubernetes-validations:
1592+ - message: capacityReservationId may not be set when marketType is Spot
1593+ rule: '!has(self.capacityReservationId) || !has(self.marketType) ||
1594+ self.marketType != ''Spot'''
1595+ - message: capacityReservationId cannot be set when spotMarketOptions
1596+ is specified
1597+ rule: '!has(self.capacityReservationId) || !has(self.spotMarketOptions)'
15911598 status:
15921599 description: AWSMachineStatus defines the observed state of AWSMachine.
15931600 properties:
@@ -6191,6 +6198,14 @@ data:
61916198 required:
61926199 - instanceType
61936200 type: object
6201+ x-kubernetes-validations:
6202+ - message: capacityReservationId may not be set when marketType
6203+ is Spot
6204+ rule: '!has(self.capacityReservationId) || !has(self.marketType)
6205+ || self.marketType != ''Spot'''
6206+ - message: capacityReservationId cannot be set when spotMarketOptions
6207+ is specified
6208+ rule: '!has(self.capacityReservationId) || !has(self.spotMarketOptions)'
61946209 required:
61956210 - spec
61966211 type: object
You can’t perform that action at this time.
0 commit comments