Skip to content

Commit

Permalink
update CRD creation for VPC and setup VPC Controller in main.go
Browse files Browse the repository at this point in the history
  • Loading branch information
eljohnson92 authored and Richard Kovacs committed Feb 5, 2024
1 parent 1b158fa commit 047ad7b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
9 changes: 9 additions & 0 deletions cmd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,15 @@ func main() {
setupLog.Error(err, "unable to create controller", "controller", "LinodeMachine")
os.Exit(1)
}
if err = (&controller2.LinodeVPCReconciler{
Client: mgr.GetClient(),
Recorder: mgr.GetEventRecorderFor("LinodeVPCReconciler"),
WatchFilterValue: clusterWatchFilter,
LinodeApiKey: linodeToken,
}).SetupWithManager(mgr); err != nil {
setupLog.Error(err, "unable to create controller", "controller", "LinodeVPC")
os.Exit(1)
}
// +kubebuilder:scaffold:builder

if err := mgr.AddHealthzCheck("healthz", healthz.Ping); err != nil {
Expand Down
1 change: 1 addition & 0 deletions config/crd/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ resources:
- bases/infrastructure.cluster.x-k8s.io_linodemachines.yaml
- bases/infrastructure.cluster.x-k8s.io_linodemachinetemplates.yaml
- bases/infrastructure.cluster.x-k8s.io_linodeclustertemplates.yaml
- bases/infrastructure.cluster.x-k8s.io_linodevpcs.yaml
#+kubebuilder:scaffold:crdkustomizeresource

patches:
Expand Down

0 comments on commit 047ad7b

Please sign in to comment.