From 9e859765818018096106c8285dc647185ed68d50 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Felix=20K=C3=A4stner?= Date: Mon, 20 Jul 2026 19:27:31 +0200 Subject: [PATCH] Bump cert-manager to v1.21.0 and detect kind cluster in Tiltfile MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Detect the active kube context at Tilt startup and set load_to_kind/kind_cluster_name dynamically so cert-manager images are side-loaded only when running against a kind cluster. Align the E2E test cert-manager version in the Makefile. Signed-off-by: Felix Kästner --- Makefile | 2 +- Tiltfile | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index a52d4058c..53f42c89d 100644 --- a/Makefile +++ b/Makefile @@ -88,7 +88,7 @@ setup-test-e2e: kind ## Set up a Kind cluster for e2e tests if it does not exist # E2E test dependency versions E2E_PROMETHEUS_OPERATOR_VERSION ?= v0.82.2 -E2E_CERTMANAGER_VERSION ?= v1.17.2 +E2E_CERTMANAGER_VERSION ?= v1.21.0 .PHONY: test-e2e test-e2e: setup-test-e2e manifests generate ## Run the e2e tests. Expected an isolated environment using Kind. diff --git a/Tiltfile b/Tiltfile index 6605ef886..9c5f39f86 100644 --- a/Tiltfile +++ b/Tiltfile @@ -11,8 +11,11 @@ watch_settings(ignore=['**/*/zz_generated.deepcopy.go', 'config/crd/bases/*']) allow_k8s_contexts(['minikube', 'kind-network-operator']) +cluster_name = str(local('kubectl config current-context', quiet=True)).strip() +is_kind = cluster_name.startswith('kind-') + load('ext://cert_manager', 'deploy_cert_manager') -deploy_cert_manager(version='v1.18.2') +deploy_cert_manager(version='v1.21.0', load_to_kind=is_kind, kind_cluster_name=cluster_name.removeprefix('kind-')) docker_build('controller:latest', '.', only=[ 'api/', 'cmd/', 'internal/', 'go.mod', 'go.sum'