From 14036e70a4bb18efa703996cf9ec002f641cd702 Mon Sep 17 00:00:00 2001 From: Nick Santos Date: Thu, 12 Dec 2024 22:58:13 -0500 Subject: [PATCH] WIP: repro steps https://github.com/tilt-dev/tilt-extensions/issues/599 Signed-off-by: Nick Santos --- helm_resource/test/Tiltfile | 2 ++ helm_resource/test/test.sh | 8 ++++++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/helm_resource/test/Tiltfile b/helm_resource/test/Tiltfile index 0868f5850..2abea7966 100644 --- a/helm_resource/test/Tiltfile +++ b/helm_resource/test/Tiltfile @@ -38,6 +38,7 @@ python_test_wrap = "\'\\'{}\\'\'" helloworld_check_kubectl = " ".join(('kubectl get', 'configmap/configmap-namespace-data', '--namespace app', + '--context', k8s_context(), "-o jsonpath=\\'{.data.properties}\\'")) helloworld_test = python_test_wrap.format('namespace:') @@ -51,6 +52,7 @@ local_resource( check_multi_namespace_kubectl = " ".join(('kubectl get', 'configmap/helloworld-systemconfig', '--namespace kube-public', + '--context', k8s_context(), "-o jsonpath=\\'{.data.hello}\\'")) multi_namespace_test = python_test_wrap.format('world') diff --git a/helm_resource/test/test.sh b/helm_resource/test/test.sh index c5b2a5028..09bfd150a 100755 --- a/helm_resource/test/test.sh +++ b/helm_resource/test/test.sh @@ -4,5 +4,9 @@ set -ex cd "$(dirname "$0")" -tilt ci -tilt down +kubectl config set-cluster dummy --server=http://localhost:1234 +kubectl config set-context dummy --cluster=dummy +kubectl config use-context dummy + +tilt ci --context=kind-kind +tilt down --context=kind-kind