Skip to content

Commit

Permalink
removing the internal directory (#15)
Browse files Browse the repository at this point in the history
Co-authored-by: Luther Monson <[email protected]>
  • Loading branch information
luthermonson and luthermonson authored Oct 6, 2023
1 parent 35eed64 commit 636f5d5
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
.DS_Store
.idea
bin/*
cover.out
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ RUN go mod download
# Copy the go source
COPY cmd/main.go cmd/main.go
COPY api/ api/
COPY internal/controller/ internal/controller/
COPY controller/ controller/

# Build
# the GOARCH has not a default value to allow the binary be built according to the host where the command
Expand Down
6 changes: 3 additions & 3 deletions cmd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ package main

import (
"flag"
controller2 "github.com/linode/cluster-api-provider-linode/controller"
"os"

// Import all Kubernetes client auth plugins (e.g. Azure, GCP, OIDC, etc.)
Expand All @@ -33,7 +34,6 @@ import (
metricsserver "sigs.k8s.io/controller-runtime/pkg/metrics/server"

infrastructurev1alpha1 "github.com/linode/cluster-api-provider-linode/api/v1alpha1"
"github.com/linode/cluster-api-provider-linode/internal/controller"
//+kubebuilder:scaffold:imports
)

Expand Down Expand Up @@ -89,14 +89,14 @@ func main() {
os.Exit(1)
}

if err = (&controller.LinodeClusterReconciler{
if err = (&controller2.LinodeClusterReconciler{
Client: mgr.GetClient(),
Scheme: mgr.GetScheme(),
}).SetupWithManager(mgr); err != nil {
setupLog.Error(err, "unable to create controller", "controller", "LinodeCluster")
os.Exit(1)
}
if err = (&controller.LinodeMachineReconciler{
if err = (&controller2.LinodeMachineReconciler{
Client: mgr.GetClient(),
Scheme: mgr.GetScheme(),
}).SetupWithManager(mgr); err != nil {
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 636f5d5

Please sign in to comment.