You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// AWSConfidentialComputePolicy represents the confidential compute configuration for the instance.
@@ -294,6 +295,7 @@ type AWSResourceReference struct {
294
295
}
295
296
296
297
// Placement indicates where to create the instance in AWS
298
+
// +kubebuilder:validation:XValidation:rule="has(self.tenancy) && self.tenancy == 'host' ? true : !has(self.host)",message="host may only be specified when tenancy is host"
297
299
typePlacementstruct {
298
300
// region is the region to use to create the instance
// Filter is a filter used to identify an AWS resource
@@ -416,19 +429,20 @@ const (
416
429
)
417
430
418
431
// HostPlacement is the type that will be used to configure the placement of AWS instances.
419
-
// +kubebuilder:validation:XValidation:rule="has(self.type) && self.affinity == 'DedicatedHost' ? has(self.dedicatedHost) : !has(self.dedicatedHost)",message="dedicatedHost is required when affinity is DedicatedHost, and forbidden otherwise"
432
+
// +kubebuilder:validation:XValidation:rule="has(self.affinity) && self.affinity == 'DedicatedHost' ? has(self.dedicatedHost) : true",message="dedicatedHost is required when affinity is DedicatedHost, and optional otherwise"
420
433
// +union
421
434
typeHostPlacementstruct {
422
435
// affinity specifies the affinity setting for the instance.
423
436
// Allowed values are AnyAvailable and DedicatedHost.
424
437
// When Affinity is set to DedicatedHost, an instance started onto a specific host always restarts on the same host if stopped. In this scenario, the `dedicatedHost` field must be set.
425
438
// When Affinity is set to AnyAvailable, and you stop and restart the instance, it can be restarted on any available host.
439
+
// When Affinity is set to AnyAvailable and the `dedicatedHost` field is defined, it runs on specified Dedicated Host, but may move if stopped.
426
440
// +required
427
441
// +unionDiscriminator
428
442
Affinity*HostAffinity`json:"affinity,omitempty"`
429
443
430
444
// dedicatedHost specifies the exact host that an instance should be restarted on if stopped.
431
-
// dedicatedHost is required when 'affinity' is set to DedicatedHost, and forbidden otherwise.
445
+
// dedicatedHost is required when 'affinity' is set to DedicatedHost, and optional otherwise.
Copy file name to clipboardExpand all lines: openapi/openapi.json
+7-7Lines changed: 7 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -22141,10 +22141,6 @@
22141
22141
"format": "int64",
22142
22142
"default": 0
22143
22143
},
22144
-
"hostPlacement": {
22145
-
"description": "hostPlacement configures placement on AWS Dedicated Hosts. This allows admins to assign instances to specific host for a variety of needs including for regulatory compliance, to leverage existing per-socket or per-core software licenses (BYOL), and to gain visibility and control over instance placement on a physical server. When omitted, the instance is not constrained to a dedicated host.",
"description": "affinity specifies the affinity setting for the instance. Allowed values are AnyAvailable and DedicatedHost. When Affinity is set to DedicatedHost, an instance started onto a specific host always restarts on the same host if stopped. In this scenario, the `dedicatedHost` field must be set. When Affinity is set to AnyAvailable, and you stop and restart the instance, it can be restarted on any available host.",
23231
+
"description": "affinity specifies the affinity setting for the instance. Allowed values are AnyAvailable and DedicatedHost. When Affinity is set to DedicatedHost, an instance started onto a specific host always restarts on the same host if stopped. In this scenario, the `dedicatedHost` field must be set. When Affinity is set to AnyAvailable, and you stop and restart the instance, it can be restarted on any available host. When Affinity is set to AnyAvailable and the `dedicatedHost` field is defined, it runs on specified Dedicated Host, but may move if stopped.",
23236
23232
"type": "string"
23237
23233
},
23238
23234
"dedicatedHost": {
23239
-
"description": "dedicatedHost specifies the exact host that an instance should be restarted on if stopped. dedicatedHost is required when 'affinity' is set to DedicatedHost, and forbidden otherwise.",
23235
+
"description": "dedicatedHost specifies the exact host that an instance should be restarted on if stopped. dedicatedHost is required when 'affinity' is set to DedicatedHost, and optional otherwise.",
"description": "availabilityZone is the availability zone of the instance",
24017
24013
"type": "string"
24018
24014
},
24015
+
"host": {
24016
+
"description": "host configures placement on AWS Dedicated Hosts. This allows admins to assign instances to specific host for a variety of needs including for regulatory compliance, to leverage existing per-socket or per-core software licenses (BYOL), and to gain visibility and control over instance placement on a physical server. When omitted, the instance is not constrained to a dedicated host.",
"description": "region is the region to use to create the instance",
24021
24021
"type": "string"
24022
24022
},
24023
24023
"tenancy": {
24024
-
"description": "tenancy indicates if instance should run on shared or single-tenant hardware. There are supported 3 options: default, dedicated and host.",
24024
+
"description": "tenancy indicates if instance should run on shared or single-tenant hardware. There are supported 3 options: default, dedicated and host. When set to default Runs on shared multi-tenant hardware. When dedicated Runs on single-tenant hardware (any dedicated instance hardware). When host and the host object is not provided: Runs on Dedicated Host; best-effort restart on same host. When `host` and `host` object is provided with affinity `dedicatedHost` defined: Runs on specified Dedicated Host.",
0 commit comments