Skip to content

Commit 4271746

Browse files
committed
fix crd location in env tests
1 parent f6d2218 commit 4271746

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

pkg/env-tests/env_tests_suite_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@ var _ = BeforeSuite(func(ctx context.Context) {
4747
By("bootstrapping test environment")
4848
testEnv = &envtest.Environment{
4949
CRDDirectoryPaths: []string{
50-
filepath.Join("..", "..", "..", "..", "deployments", "kai-scheduler", "crds"),
51-
filepath.Join("..", "..", "..", "..", "deployments", "external-crds"),
50+
filepath.Join("..", "..", "deployments", "kai-scheduler", "crds"),
51+
filepath.Join("..", "..", "deployments", "external-crds"),
5252
},
5353
ErrorIfCRDPathMissing: true,
5454
}

pkg/podgrouper/suite_test.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,9 @@ var _ = BeforeSuite(func() {
3636

3737
By("bootstrapping test environment")
3838
testEnv = &envtest.Environment{
39-
CRDDirectoryPaths: []string{filepath.Join("..", "..", "deployments", "kai-scheduler", "crds", "internal")},
39+
CRDDirectoryPaths: []string{
40+
filepath.Join("..", "..", "deployments", "kai-scheduler", "crds"),
41+
},
4042
ErrorIfCRDPathMissing: true,
4143
}
4244

pkg/queuecontroller/controllers/suite_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,8 @@ var _ = BeforeSuite(func() {
7272
By("bootstrapping test environment")
7373
testEnv = &envtest.Environment{
7474
CRDDirectoryPaths: []string{
75-
filepath.Join("..", "..", "..", "..", "deployments", "kai-scheduler", "crds"),
76-
filepath.Join("..", "..", "..", "..", "deployments", "external-crds"),
75+
filepath.Join("..", "..", "..", "deployments", "kai-scheduler", "crds"),
76+
filepath.Join("..", "..", "..", "deployments", "external-crds"),
7777
},
7878
ErrorIfCRDPathMissing: true,
7979
}

0 commit comments

Comments
 (0)