-
Notifications
You must be signed in to change notification settings - Fork 570
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
fix: awsmachinepool use subnet filters #2634
fix: awsmachinepool use subnet filters #2634
Conversation
Welcome @calvix! |
Hi @calvix. 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. |
/ok-to-test |
I'd prefer for this to be implemented everywhere there is a Subnet currently using a AWSResourceReference, rather than having this very ad hoc implementation in this one specific CRD. It doesn't really fix the API issue we have. I'll try and include this in the API cleanup. |
As far as I know, the only other resource that has reference to the subnet is AWSMachine and the machine controller already has the implementation for the filters (I used it as a template for this) cluster-api-provider-aws/pkg/cloud/services/ec2/instances.go Lines 293 to 320 in 327e9b8
|
In which case, can we dedupe the code and have it in a single plac? |
@calvix Can we try to implement a common method for all other subnets to use as @randomvariable pointed in the comment above? |
@calvix: Adding label 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. |
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
…x/cluster-api-provider-aws into awsmachinepool-use-subnets-filters
@sedefsavas @randomvariable Do you have any suggestions for how best to refactor this in a non-API-changing way? The inconsistencies with
|
@sedefsavas @randomvariable I also think the logic between the two isn't exactly the same so I'm not sure a single function even makes sense for this. Unless you have some good suggestions on how to do that. |
/close |
@Ankitasw: Closed this PR. In response to this:
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. |
thanks for sorting it out :) |
What type of PR is this?
/kind bug
What this PR does / why we need it:
implements was subnet lookup specified by filters in
AWSMachinePool.Spec.Subnets
The previous implementation only worked with IDs, but now users can specify filters to select specific subnets that will be used for the machinepool.
Fixes #2609
Special notes for your reviewer:
Checklist:
Release note: