From 64a1b22123abe4f4b0676980f50fe1b434a1abf7 Mon Sep 17 00:00:00 2001 From: Andreas Fritzler Date: Mon, 16 Sep 2024 13:14:31 +0200 Subject: [PATCH] Use 1.31 testenv cluster --- api/v1alpha1/webhook_suite_test.go | 2 +- internal/controller/suite_test.go | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/api/v1alpha1/webhook_suite_test.go b/api/v1alpha1/webhook_suite_test.go index 99d3803..edb1eef 100644 --- a/api/v1alpha1/webhook_suite_test.go +++ b/api/v1alpha1/webhook_suite_test.go @@ -74,7 +74,7 @@ var _ = BeforeSuite(func() { // Note that you must have the required binaries setup under the bin directory to perform // the tests directly. When we run make test it will be setup and used automatically. BinaryAssetsDirectory: filepath.Join("..", "..", "bin", "k8s", - fmt.Sprintf("1.29.0-%s-%s", runtime.GOOS, runtime.GOARCH)), + fmt.Sprintf("1.31.0-%s-%s", runtime.GOOS, runtime.GOARCH)), WebhookInstallOptions: envtest.WebhookInstallOptions{ Paths: []string{filepath.Join("..", "..", "config", "webhook")}, diff --git a/internal/controller/suite_test.go b/internal/controller/suite_test.go index a83eed7..02bec71 100644 --- a/internal/controller/suite_test.go +++ b/internal/controller/suite_test.go @@ -6,10 +6,8 @@ package controller import ( "context" "fmt" - "k8s.io/utils/ptr" "path/filepath" "runtime" - "sigs.k8s.io/controller-runtime/pkg/config" "testing" "time" @@ -73,7 +71,7 @@ var _ = BeforeSuite(func() { // Note that you must have the required binaries setup under the bin directory to perform // the tests directly. When we run make test it will be setup and used automatically. BinaryAssetsDirectory: filepath.Join("..", "..", "bin", "k8s", - fmt.Sprintf("1.29.0-%s-%s", runtime.GOOS, runtime.GOARCH)), + fmt.Sprintf("1.31.0-%s-%s", runtime.GOOS, runtime.GOARCH)), } var err error