Skip to content

Commit c62e9f2

Browse files
committed
move controllers to internal/controllers
Signed-off-by: Sanskar Jaiswal <[email protected]>
1 parent 7889652 commit c62e9f2

File tree

17 files changed

+13
-11
lines changed

17 files changed

+13
-11
lines changed

.gitignore

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ notes
22

33
# Thes are downloaded in the Makefile
44
cache/*
5-
controllers/testdata/crds/*
5+
internal/controllers/testdata/crds/*
66

77
# Binaries for programs and plugins
88
*.exe
@@ -31,3 +31,6 @@ testbin
3131

3232
# Exclude all build related files
3333
build/
34+
35+
# CRDs for fuzzing tests.
36+
internal/controllers/testdata/crd

Dockerfile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ RUN go mod download
4040

4141
# Copy source code
4242
COPY main.go main.go
43-
COPY controllers/ controllers/
4443
COPY pkg/ pkg/
4544
COPY internal/ internal/
4645

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ ifeq ($(shell uname -s),Darwin)
6969
ENVTEST_ARCH=amd64
7070
endif
7171

72-
TEST_CRDS := controllers/testdata/crds
72+
TEST_CRDS := internal/controllers/testdata/crds
7373

7474
# Log level for `make run`
7575
LOG_LEVEL ?= info

controllers/suite_test.go renamed to internal/controllers/suite_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ func TestMain(m *testing.M) {
6767

6868
func runTestsWithFeatures(m *testing.M, feats map[string]bool) int {
6969
testEnv = testenv.New(testenv.WithCRDPath(
70-
filepath.Join("..", "config", "crd", "bases"),
70+
filepath.Join("..", "..", "config", "crd", "bases"),
7171
filepath.Join("testdata", "crds"),
7272
))
7373

0 commit comments

Comments
 (0)