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.
@@ -393,3 +401,46 @@ const (
393
401
// When set to CapacityBlock the instance utilizes pre-purchased compute capacity (capacity blocks) with AWS Capacity Reservations.
394
402
MarketTypeCapacityBlockMarketType="CapacityBlock"
395
403
)
404
+
405
+
// HostPlacement is the type that will be used to configure the placement of AWS instances.
406
+
// +kubebuilder:validation:XValidation:rule="has(self.type) && self.affinity == 'DedicatedHost' ? has(self.dedicated) : !has(self.dedicated)",message="dedicated is required when affinity is DedicatedHost, and forbidden otherwise"
407
+
// +union
408
+
typeHostPlacementstruct {
409
+
// affinity specifies the affinity setting for the instance.
410
+
// Allowed values are AnyAvailable and DedicatedHost.
411
+
// 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 `dedicated` field must be set.
412
+
// When Affinity is set to AnyAvailable, and you stop and restart the instance, it can be restarted on any available host.
413
+
// +required
414
+
// +unionDiscriminator
415
+
AffinityHostAffinity`json:"affinity,omitempty"`
416
+
417
+
// dedicatedHost specifies a particular dedicated host when required by affinity set to DedicatedHost.
418
+
// dedicatedHost is required when 'affinity' is set to DedicatedHost, and forbidden otherwise.
// DedicatedHost represents the configuration for the usage of dedicated host.
437
+
typeDedicatedHoststruct {
438
+
// id identifies the AWS Dedicated Host on which the instance must run.
439
+
// The value must start with "h-" followed by 17 lowercase hexadecimal characters (0-9 and a-f).
440
+
// Must be exactly 19 characters in length.
441
+
// +kubebuilder:validation:XValidation:rule="self.matches('^h-[0-9a-f]{17}$')",message="hostID must start with 'h-' followed by 17 lowercase hexadecimal characters (0-9 and a-f)"
0 commit comments