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
// DedicatedHost represents the configuration for the usage of dedicated host.
476
+
// +kubebuilder:validation:XValidation:rule="self.allocationStrategy == 'Provided' ? has(self.id) : true",message="id is required when allocationStrategy is Provided, and forbidden otherwise"
477
+
// +kubebuilder:validation:XValidation:rule="has(self.id) ? self.allocationStrategy == 'Provided' : true",message="id is only allowed when allocationStrategy is Provided"
478
+
// +kubebuilder:validation:XValidation:rule="has(self.dynamicHostAllocation) ? self.allocationStrategy == 'Dynamic' : true",message="dynamicHostAllocation is only allowed when allocationStrategy is Dynamic"
464
479
typeDedicatedHoststruct {
480
+
// allocationStrategy specifies if the dedicated host will be provided by the admin through the id field or if the host will be dynamically allocated.
481
+
// Valid values are Provided and Dynamic.
482
+
// The current default value is "Provided".
483
+
// When AllocationStrategy is set to Provided, an ID of the dedicated host to assign must be provided.
484
+
// When AllocationStrategy is set to Dynamic, a dedicated host will be allocated and used to assign instances.
485
+
// When AllocationStrategy is set to Dynamic, and DynamicHostAllocation is provided, a dedicated host will be allocated and the tags in DynamicHostAllocation will be assigned to that host.
// id identifies the AWS Dedicated Host on which the instance must run.
466
492
// The value must start with "h-" followed by either 8 or 17 lowercase hexadecimal characters (0-9 and a-f).
467
493
// The use of 8 lowercase hexadecimal characters is for older legacy hosts that may not have been migrated to newer format.
468
494
// Must be either 10 or 19 characters in length.
469
495
// +kubebuilder:validation:XValidation:rule="self.matches('^h-([0-9a-f]{8}|[0-9a-f]{17})$')",message="hostID must start with 'h-' followed by either 8 or 17 lowercase hexadecimal characters (0-9 and a-f)"
470
496
// +kubebuilder:validation:MinLength=10
471
497
// +kubebuilder:validation:MaxLength=19
472
-
// +required
498
+
// +optional
499
+
// +unionMember
473
500
IDstring`json:"id,omitempty"`
501
+
502
+
// dynamicHostAllocation specifies tags to apply to a dynamically allocated dedicated host.
503
+
// This field is mutually exclusive with id and always allocates exactly one host.
0 commit comments