-
Notifications
You must be signed in to change notification settings - Fork 47
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
Support specifying VPC #225
Support specifying VPC #225
Conversation
Hi @timoreimann. 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 |
8cf86d3
to
ae9ca2c
Compare
ae9ca2c
to
711a539
Compare
/milestone v0.5 |
@timoreimann so the users should to create the vpc before using that right? |
@prksu I like the idea to let the controller manage the VPC. I'm also thinking though that some users may want to use a pre-existing VPC, in which case the controller should probably verify that the VPC exists. Any thoughts on covering both cases? (If so, then I could first tackle the simpler case of the two followed by the other in a future PR.) |
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.
/approve
This change adds a field to DONetwork specifying the VPC UUID and updates the controllers to pass the ID into droplet and load balancer create requests.
711a539
to
85cdb3b
Compare
@prksu I moved the VPC UUID below a newly created struct named WDYT about getting this PR in first so that users who are fine with specifying the VPC ID explicitly and configuring the subnet etc. accordingly can benefit from it, while we leave the more complex auto-discovery approach to a future PR? The latter still has a few open questions for me, especially how a dynamically retrieved subnet can be fed into the CNI configuration. We might need more time to sort that out. |
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.
@prksu I moved the VPC UUID below a newly created struct named VPC. This should provide space for adding more VPC-specific fields, like the subnet.
That's what I thought too.
And yes, we can leave the rest as the follow up. Thanks @timoreimann
/lgtm
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: cpanato, prksu, timoreimann 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 |
What this PR does / why we need it:
This change adds a field to DONetwork specifying the VPC UUID and updates the controllers to pass the ID into droplet and load balancer create requests. That way, users can create custom VPCs and have their CAPI-managed clusters join them.
Which issue(s) this PR fixes:
Fixes #177
Special notes for your reviewer:
I was looking into writing a dedicated e2e test for this feature. The part I struggled with is how to customize the subnet definition in the
Cluster
resource and, more importantly, the subnet defined in the Calico config file. I think I can solve the former by introducing another DO-specific environment variable, but not sure if the same pattern applies for the Calico config.Happy to follow up on this before calling the PR done if anyone is willing to provide some guidance. Thanks!
Release note: