From caec199d8c463eb02a42d0f52d47790fad59af59 Mon Sep 17 00:00:00 2001 From: Coleen Iona Quadros Date: Wed, 18 Sep 2024 14:05:21 +0200 Subject: [PATCH] fix integration test Signed-off-by: Coleen Iona Quadros --- internal/controller/suite_test.go | 2 +- test/configs/service-monitor.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/controller/suite_test.go b/internal/controller/suite_test.go index 98be6f2..bc72f80 100644 --- a/internal/controller/suite_test.go +++ b/internal/controller/suite_test.go @@ -70,7 +70,7 @@ var _ = BeforeSuite(func() { testEnv = &envtest.Environment{ CRDDirectoryPaths: []string{ filepath.Join("..", "..", "config", "crd", "bases"), - filepath.Join("..", "..", "test", "configs", "service-monitor.yaml"), // Add this line + filepath.Join("..", "..", "test", "configs", "service-monitor.yaml"), }, ErrorIfCRDPathMissing: true, diff --git a/test/configs/service-monitor.yaml b/test/configs/service-monitor.yaml index ae8e8a8..ff9c09d 100644 --- a/test/configs/service-monitor.yaml +++ b/test/configs/service-monitor.yaml @@ -2,7 +2,7 @@ apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition metadata: annotations: - controller-gen.kubebuilder.io/version: v0.6.2 + controller-gen.kubebuilder.io/version: v0.16.1 creationTimestamp: null name: servicemonitors.monitoring.coreos.com spec: