Skip to content
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

Introduce VPC controller #62

Merged
merged 7 commits into from
Feb 5, 2024
Merged

Introduce VPC controller #62

merged 7 commits into from
Feb 5, 2024

Conversation

mhmxs
Copy link
Contributor

@mhmxs mhmxs commented Jan 24, 2024

This change introduces a new controller to manage VPCs on Linode. The Cluster object has an optional vpcReference field. The customer should bring them own VPC by setting the label field to the custom resource to pointing to an existing VPC. The machine controller also has been updated to attach new instances to the VPC.

Fixes: #4

@mhmxs mhmxs force-pushed the vpc-controller branch 2 times, most recently from cccf3fd to cb4cb2c Compare January 24, 2024 12:55
@mhmxs mhmxs force-pushed the vpc-controller branch 6 times, most recently from 59d34b9 to e723014 Compare January 26, 2024 17:58
@mhmxs mhmxs requested a review from luthermonson January 26, 2024 18:07
@mhmxs mhmxs marked this pull request as ready for review January 30, 2024 14:20
@mhmxs mhmxs force-pushed the vpc-controller branch 3 times, most recently from fd84967 to 5af0987 Compare February 1, 2024 05:41
Copy link
Contributor

@avestuk avestuk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry I had prepared comments but never submitted them!

controller/linodemachine_controller.go Outdated Show resolved Hide resolved
controller/linodemachine_controller_helpers.go Outdated Show resolved Hide resolved
controller/linodemachine_controller_helpers.go Outdated Show resolved Hide resolved
controller/linodevpc_controller.go Show resolved Hide resolved
@eljohnson92
Copy link
Collaborator

I have tested this and confirmed a VPC is created and LinodeMachines are attached to that VPC correctly. once other code review comments are resolved this should be good to merge

@mhmxs
Copy link
Contributor Author

mhmxs commented Feb 5, 2024

@eljohnson92 @avestuk I addressedd all the review items, so could you please do the final review (one more commit) and it should be ready to merge.

@mhmxs mhmxs merged commit de78b4b into linode:main Feb 5, 2024
5 checks passed
@mhmxs mhmxs deleted the vpc-controller branch February 5, 2024 14:20
cbzzz pushed a commit to cbzzz/cluster-api-provider-linode that referenced this pull request Feb 8, 2024
cbzzz pushed a commit that referenced this pull request May 15, 2024
amold1 pushed a commit that referenced this pull request May 17, 2024
* Introduce VPC controller

* Requeue non empty vpc deletion

* Filter out not found in vpc controller patch

* Update controller/linodemachine_controller.go

Co-authored-by: Alex Vest <[email protected]>

* Update controller/linodemachine_controller_helpers.go

Co-authored-by: Alex Vest <[email protected]>

* update CRD creation for VPC and setup VPC Controller in main.go

* Remove vpc list copy before sort

---------

Co-authored-by: Richard Kovacs <[email protected]>
Co-authored-by: Alex Vest <[email protected]>
Co-authored-by: Evan Johnson <[email protected]>
cbzzz pushed a commit that referenced this pull request May 21, 2024
cbzzz pushed a commit that referenced this pull request May 22, 2024
cbzzz added a commit that referenced this pull request May 22, 2024
* fixup! Introduce VPC controller (#62)

* feat: linodevpc: kubebuilder create webhook

Scaffold a validating admission webhook for the LinodeVPC resource
with Kubebuider via the command:
kubebuilder create webhook --group infrastructure --version v1alpha1 --kind LinodeVPC --programmatic-validation

* fixup! feat: linodevpc: kubebuilder create webhook

* golangci: configure varnamelen

* api: linodevpc: add create validation
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

VPC Support
4 participants