From 303493bcc2ba7705d8d7d684963669ca488de4d9 Mon Sep 17 00:00:00 2001 From: Alexandr Demicev Date: Thu, 3 Nov 2022 11:35:14 +0100 Subject: [PATCH] Fix CRD paths in envtest setup Signed-off-by: Alexandr Demicev --- bootstrap/internal/controllers/suite_test.go | 2 +- controlplane/internal/controllers/suite_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bootstrap/internal/controllers/suite_test.go b/bootstrap/internal/controllers/suite_test.go index e5d7479..e5a6f1e 100644 --- a/bootstrap/internal/controllers/suite_test.go +++ b/bootstrap/internal/controllers/suite_test.go @@ -55,7 +55,7 @@ var _ = BeforeSuite(func() { By("bootstrapping test environment") testEnv = &envtest.Environment{ - CRDDirectoryPaths: []string{filepath.Join("..", "config", "crd", "bases")}, + CRDDirectoryPaths: []string{filepath.Join("..", "..", "config", "crd", "bases")}, ErrorIfCRDPathMissing: true, } diff --git a/controlplane/internal/controllers/suite_test.go b/controlplane/internal/controllers/suite_test.go index d28a481..38f8de0 100644 --- a/controlplane/internal/controllers/suite_test.go +++ b/controlplane/internal/controllers/suite_test.go @@ -55,7 +55,7 @@ var _ = BeforeSuite(func() { By("bootstrapping test environment") testEnv = &envtest.Environment{ - CRDDirectoryPaths: []string{filepath.Join("..", "config", "crd", "bases")}, + CRDDirectoryPaths: []string{filepath.Join("..", "..", "config", "crd", "bases")}, ErrorIfCRDPathMissing: true, }