Skip to content

Commit

Permalink
Merge pull request #500 from fluxcd/ctrl-internal
Browse files Browse the repository at this point in the history
move all controllers to `internal` package
  • Loading branch information
makkes committed Mar 30, 2023
2 parents 0af806c + 0c0109a commit 2ad774c
Show file tree
Hide file tree
Showing 11 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ RUN go mod download

# copy source code
COPY main.go main.go
COPY controllers/ controllers/
COPY internal/ internal/

# build
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ func TestMain(m *testing.M) {
utilruntime.Must(apiv1b2.AddToScheme(scheme.Scheme))

testEnv = testenv.New(testenv.WithCRDPath(
filepath.Join("..", "config", "crd", "bases"),
filepath.Join("..", "..", "config", "crd", "bases"),
))

k8sClient, err = client.New(testEnv.Config, client.Options{Scheme: scheme.Scheme})
Expand Down
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ import (

apiv1 "github.com/fluxcd/notification-controller/api/v1"
apiv1b2 "github.com/fluxcd/notification-controller/api/v1beta2"
"github.com/fluxcd/notification-controller/controllers"
"github.com/fluxcd/notification-controller/internal/controllers"
"github.com/fluxcd/notification-controller/internal/features"
"github.com/fluxcd/notification-controller/internal/server"
// +kubebuilder:scaffold:imports
Expand Down

0 comments on commit 2ad774c

Please sign in to comment.