Skip to content

Commit c8000b0

Browse files
feat(controllers): expose controller constructors to use scaleway provider as SDK (#33)
* feat(controllers): moving controller to exposed pkg, to use scaleway provider as SDK Signed-off-by: Steffen Karlsson <[email protected]> * feat(lint): adding liniting exceptions for pkg/ Signed-off-by: Steffen Karlsson <[email protected]> * feat(controller): replacing by alias file in pkg to keep supporting kubebuilder Signed-off-by: Steffen Karlsson <[email protected]> * Update .golangci.yml Co-authored-by: Tomy Guichard <[email protected]> --------- Signed-off-by: Steffen Karlsson <[email protected]> Co-authored-by: Tomy Guichard <[email protected]>
1 parent 8ccdfce commit c8000b0

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ RUN go mod download
1515
# Copy the go source
1616
COPY cmd/main.go cmd/main.go
1717
COPY api/ api/
18+
COPY pkg/ pkg/
1819
COPY internal/ internal/
1920

2021
# Build

pkg/controller/alias.go

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
package controller
2+
3+
import "github.com/scaleway/cluster-api-provider-scaleway/internal/controller"
4+
5+
// Following variables provide access to reconcilers implemented in internal/controller.
6+
var (
7+
NewScalewayClusterReconciler = controller.NewScalewayClusterReconciler
8+
NewScalewayMachineReconciler = controller.NewScalewayMachineReconciler
9+
NewScalewayManagedClusterReconciler = controller.NewScalewayManagedClusterReconciler
10+
NewScalewayManagedControlPlaneReconciler = controller.NewScalewayManagedControlPlaneReconciler
11+
NewScalewayManagedMachinePoolReconciler = controller.NewScalewayManagedMachinePoolReconciler
12+
)

0 commit comments

Comments
 (0)