Skip to content
This repository was archived by the owner on Jun 13, 2025. It is now read-only.

Commit 9430fc7

Browse files
committed
Make all packages internal
1 parent 5c3c814 commit 9430fc7

File tree

16 files changed

+21
-22
lines changed

16 files changed

+21
-22
lines changed

Dockerfile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,7 @@ RUN go mod download
1414
# Copy the go source
1515
COPY cmd/main.go cmd/main.go
1616
COPY api/ api/
17-
COPY internal/controller/ internal/controller/
18-
COPY pkg/ pkg/
17+
COPY internal/ internal/
1918

2019
# Build
2120
# the GOARCH has not a default value to allow the binary be built according to the host where the command

internal/controller/scalewaycluster_controller.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,12 @@ import (
1717
"sigs.k8s.io/controller-runtime/pkg/log"
1818

1919
infrastructurev1beta1 "github.com/Tomy2e/cluster-api-provider-scaleway/api/v1beta1"
20-
"github.com/Tomy2e/cluster-api-provider-scaleway/pkg/scope"
21-
scwClient "github.com/Tomy2e/cluster-api-provider-scaleway/pkg/service/scaleway/client"
22-
"github.com/Tomy2e/cluster-api-provider-scaleway/pkg/service/scaleway/loadbalancer"
23-
"github.com/Tomy2e/cluster-api-provider-scaleway/pkg/service/scaleway/securitygroup"
24-
"github.com/Tomy2e/cluster-api-provider-scaleway/pkg/service/scaleway/vpc"
25-
"github.com/Tomy2e/cluster-api-provider-scaleway/pkg/service/scaleway/vpcgw"
20+
"github.com/Tomy2e/cluster-api-provider-scaleway/internal/scope"
21+
scwClient "github.com/Tomy2e/cluster-api-provider-scaleway/internal/service/scaleway/client"
22+
"github.com/Tomy2e/cluster-api-provider-scaleway/internal/service/scaleway/loadbalancer"
23+
"github.com/Tomy2e/cluster-api-provider-scaleway/internal/service/scaleway/securitygroup"
24+
"github.com/Tomy2e/cluster-api-provider-scaleway/internal/service/scaleway/vpc"
25+
"github.com/Tomy2e/cluster-api-provider-scaleway/internal/service/scaleway/vpcgw"
2626
"github.com/scaleway/scaleway-sdk-go/scw"
2727
)
2828

internal/controller/scalewaymachine_controller.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ import (
1616
"sigs.k8s.io/controller-runtime/pkg/log"
1717

1818
infrastructurev1beta1 "github.com/Tomy2e/cluster-api-provider-scaleway/api/v1beta1"
19-
"github.com/Tomy2e/cluster-api-provider-scaleway/pkg/scope"
20-
scwClient "github.com/Tomy2e/cluster-api-provider-scaleway/pkg/service/scaleway/client"
21-
"github.com/Tomy2e/cluster-api-provider-scaleway/pkg/service/scaleway/instance"
19+
"github.com/Tomy2e/cluster-api-provider-scaleway/internal/scope"
20+
scwClient "github.com/Tomy2e/cluster-api-provider-scaleway/internal/service/scaleway/client"
21+
"github.com/Tomy2e/cluster-api-provider-scaleway/internal/service/scaleway/instance"
2222
)
2323

2424
// ScalewayMachineReconciler reconciles a ScalewayMachine object

pkg/scope/cluster.go renamed to internal/scope/cluster.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import (
55
"fmt"
66

77
infrastructurev1beta1 "github.com/Tomy2e/cluster-api-provider-scaleway/api/v1beta1"
8-
scwClient "github.com/Tomy2e/cluster-api-provider-scaleway/pkg/service/scaleway/client"
8+
scwClient "github.com/Tomy2e/cluster-api-provider-scaleway/internal/service/scaleway/client"
99
"github.com/pkg/errors"
1010
"github.com/scaleway/scaleway-sdk-go/scw"
1111
"golang.org/x/exp/slices"
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)