Skip to content

Commit

Permalink
Merge pull request #1897 from chiragkyal/partition-number
Browse files Browse the repository at this point in the history
CFE-1063: Add PlacementGroupPartition in AWSMachineProviderConfig
  • Loading branch information
openshift-merge-bot[bot] committed Jun 13, 2024
2 parents 5c2b46e + 14a7205 commit 76a71da
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 19 deletions.
7 changes: 7 additions & 0 deletions machine/v1beta1/types_awsprovider.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,13 @@ type AWSMachineProviderConfig struct {
// When omitted, no placement group is used when creating the EC2 instance.
// +optional
PlacementGroupName string `json:"placementGroupName,omitempty"`
// 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.
// +kubebuilder:validation:Minimum:=1
// +kubebuilder:validation:Maximum:=7
// +optional
PlacementGroupPartition int32 `json:"placementGroupPartition,omitempty"`
}

// BlockDeviceMappingSpec describes a block device mapping
Expand Down
39 changes: 20 additions & 19 deletions machine/v1beta1/zz_generated.swagger_doc_generated.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions openapi/generated_openapi/zz_generated.openapi.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions openapi/openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -20096,6 +20096,11 @@
"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.",
"type": "string"
},
"placementGroupPartition": {
"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.",
"type": "integer",
"format": "int32"
},
"publicIp": {
"description": "PublicIP specifies whether the instance should get a public IP. If not present, it should use the default of its subnet.",
"type": "boolean"
Expand Down

0 comments on commit 76a71da

Please sign in to comment.