From 372f60a734e77aa1597ac3c33ea99355eeba3f6d Mon Sep 17 00:00:00 2001
From: Carina Antunes <carinadeoliveiraantunes@gmail.com>
Date: Thu, 4 Jul 2024 16:22:56 +0200
Subject: [PATCH] pin setup-envtest for golang 1.21 compatibility

---
 .gitlab-ci.yml | 2 ++
 Makefile       | 2 +-
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index a5ef1a49..e95c537f 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -19,5 +19,7 @@ variables:
 GoTest:
   stage: test
   image: golang:1.21
+  variables:
+    ACK_GINKGO_DEPRECATIONS: 1.16.4
   script:
     - make test
diff --git a/Makefile b/Makefile
index 165033a1..d4cf79a7 100644
--- a/Makefile
+++ b/Makefile
@@ -34,7 +34,7 @@ ENVTEST := $(GOBIN)/setup-envtest
 ENVTEST_K8S_VERSION = 1.21
 # Download setup-envtest locally if necessary
 setup-envtest-bin:
-	go install sigs.k8s.io/controller-runtime/tools/setup-envtest@latest
+	go install sigs.k8s.io/controller-runtime/tools/setup-envtest@release-0.17
 	ls -l $(GOBIN)
 	$(ENVTEST) use ${ENVTEST_K8S_VERSION}
 	
-- 
GitLab