-
Notifications
You must be signed in to change notification settings - Fork 575
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
✨ Add support to specify PlacementGroupPartition of placement group #4883
✨ Add support to specify PlacementGroupPartition of placement group #4883
Conversation
|
Welcome @chiragkyal! |
Hi @chiragkyal. Thanks for your PR. I'm waiting for a kubernetes-sigs member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
334c2f9
to
2e6bfb3
Compare
@@ -56,6 +56,7 @@ func (src *AWSCluster) ConvertTo(dstRaw conversion.Hub) error { | |||
if restored.Status.Bastion != nil { | |||
dst.Status.Bastion.InstanceMetadataOptions = restored.Status.Bastion.InstanceMetadataOptions | |||
dst.Status.Bastion.PlacementGroupName = restored.Status.Bastion.PlacementGroupName | |||
dst.Status.Bastion.PlacementGroupPartition = restored.Status.Bastion.PlacementGroupPartition |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No need to add this new filed in v1beta1 as we would be going to deprecate that soon
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Okay, that makes sense. I'm wondering if CI tests would complain if I remove the conversion. If that's not the case, then we can remove it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The test failed after I removed the conversion. Can you please suggest what should be the correct approach here?
--- FAIL: TestFuzzyConversion (59.20s)
--- FAIL: TestFuzzyConversion/for_AWSCluster (18.80s)
--- PASS: TestFuzzyConversion/for_AWSCluster/spoke-hub-spoke (18.79s)
--- FAIL: TestFuzzyConversion/for_AWSCluster/hub-spoke-hub (0.01s)
--- FAIL: TestFuzzyConversion/for_AWSMachine (17.20s)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Couldn't we just leave this generated conversion in place if it is causing issues? I guess if we deprecate v1beta1, it won't matter either way
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think that would be better, since it's causing the CI tests failure. I've added back the conversion.
/assign @Ankitasw |
6e051c3
to
7e79b8b
Compare
/lgtm |
/test pull-cluster-api-provider-aws-e2e |
/test pull-cluster-api-provider-aws-e2e |
1 similar comment
/test pull-cluster-api-provider-aws-e2e |
Is this related to the PR changes? I'm not quite sure.
|
Looks like a flake timeout to me, hence the retest. Let's see. |
[APPROVALNOTIFIER] This PR is APPROVED Approval requirements bypassed by manually added approval. This pull-request has been approved by: The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
// +kubebuilder:validation:Minimum:=1 | ||
// +kubebuilder:validation:Maximum:=7 | ||
// +optional | ||
PlacementGroupPartition int64 `json:"placementGroupPartition,omitempty"` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Probably should have been int32
What type of PR is this?
/kind feature
What this PR does / why we need it:
Adds support for users to specify the partition number (
PlacementGroupPartition
) of a placement group, identified byPlacementGroupName
while creating instances.Which issue(s) this PR fixes (optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)
format, will close the issue(s) when PR gets merged):Fixes #4870
Special notes for your reviewer:
Checklist:
Release note: