diff --git a/Makefile.maker.yaml b/Makefile.maker.yaml index faa44e4..1bfb3b0 100644 --- a/Makefile.maker.yaml +++ b/Makefile.maker.yaml @@ -69,6 +69,7 @@ reuse: - PROJECT - config/** - charts/** + - hack/crds/** - internal/**/*_mock.go - build/** SPDX-FileCopyrightText: 'SAP SE or an SAP affiliate company and cobaltcore-dev contributors' diff --git a/REUSE.toml b/REUSE.toml index df1ecef..64ba36a 100644 --- a/REUSE.toml +++ b/REUSE.toml @@ -30,6 +30,7 @@ path = [ "PROJECT", "config/**", "charts/**", + "hack/crds/**", "internal/**/*_mock.go", "build/**", ] diff --git a/charts/kvm-node-agent/crds/hypervisor-crd.yaml b/hack/crds/hypervisor-crd.yaml similarity index 100% rename from charts/kvm-node-agent/crds/hypervisor-crd.yaml rename to hack/crds/hypervisor-crd.yaml diff --git a/internal/controller/suite_test.go b/internal/controller/suite_test.go index d12d5bf..55b3038 100644 --- a/internal/controller/suite_test.go +++ b/internal/controller/suite_test.go @@ -54,7 +54,10 @@ var _ = BeforeSuite(func() { By("bootstrapping test environment") testEnv = &envtest.Environment{ - CRDDirectoryPaths: []string{filepath.Join("..", "..", "charts", "kvm-node-agent", "crds")}, + CRDDirectoryPaths: []string{ + filepath.Join("..", "..", "charts", "kvm-node-agent", "crds"), + filepath.Join("..", "..", "hack", "crds"), + }, ErrorIfCRDPathMissing: true, // The BinaryAssetsDirectory is only required if you want to run the tests directly diff --git a/internal/evacuation/suite_test.go b/internal/evacuation/suite_test.go index b5a97bf..273773a 100644 --- a/internal/evacuation/suite_test.go +++ b/internal/evacuation/suite_test.go @@ -54,7 +54,10 @@ var _ = BeforeSuite(func() { By("bootstrapping test environment") testEnv = &envtest.Environment{ - CRDDirectoryPaths: []string{filepath.Join("..", "..", "charts", "kvm-node-agent", "crds")}, + CRDDirectoryPaths: []string{ + filepath.Join("..", "..", "charts", "kvm-node-agent", "crds"), + filepath.Join("..", "..", "hack", "crds"), + }, ErrorIfCRDPathMissing: true, // The BinaryAssetsDirectory is only required if you want to run the tests directly