Skip to content

Commit 76a71da

Browse files
Merge pull request #1897 from chiragkyal/partition-number
CFE-1063: Add PlacementGroupPartition in AWSMachineProviderConfig
2 parents 5c2b46e + 14a7205 commit 76a71da

File tree

4 files changed

+39
-19
lines changed

4 files changed

+39
-19
lines changed

machine/v1beta1/types_awsprovider.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,13 @@ type AWSMachineProviderConfig struct {
8484
// When omitted, no placement group is used when creating the EC2 instance.
8585
// +optional
8686
PlacementGroupName string `json:"placementGroupName,omitempty"`
87+
// placementGroupPartition is the partition number within the placement group in which to launch the instance.
88+
// This must be an integer value between 1 and 7. It is only valid if the placement group, referred in
89+
// `PlacementGroupName` was created with strategy set to partition.
90+
// +kubebuilder:validation:Minimum:=1
91+
// +kubebuilder:validation:Maximum:=7
92+
// +optional
93+
PlacementGroupPartition int32 `json:"placementGroupPartition,omitempty"`
8794
}
8895

8996
// BlockDeviceMappingSpec describes a block device mapping

machine/v1beta1/zz_generated.swagger_doc_generated.go

Lines changed: 20 additions & 19 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

openapi/generated_openapi/zz_generated.openapi.go

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

openapi/openapi.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20096,6 +20096,11 @@
2009620096
"description": "PlacementGroupName specifies the name of the placement group in which to launch the instance. The placement group must already be created and may use any placement strategy. When omitted, no placement group is used when creating the EC2 instance.",
2009720097
"type": "string"
2009820098
},
20099+
"placementGroupPartition": {
20100+
"description": "placementGroupPartition is the partition number within the placement group in which to launch the instance. This must be an integer value between 1 and 7. It is only valid if the placement group, referred in `PlacementGroupName` was created with strategy set to partition.",
20101+
"type": "integer",
20102+
"format": "int32"
20103+
},
2009920104
"publicIp": {
2010020105
"description": "PublicIP specifies whether the instance should get a public IP. If not present, it should use the default of its subnet.",
2010120106
"type": "boolean"

0 commit comments

Comments
 (0)