From 68aa75abe16fb593ee02b5a37783371c3dfc24b2 Mon Sep 17 00:00:00 2001 From: Aleksandr Nogikh Date: Mon, 24 Feb 2025 14:30:04 +0100 Subject: syz-cluster: make image prefix and tag configurable Accept IMAGE_PREFIX and IMAGE_TAG parameters that allow to reuse the Makefile and a lot of k8s configurations both for local and prod environments. Refactor Makefile: define build-* and push-* rules, use templates to avoid repetition. --- syz-cluster/run-local.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'syz-cluster/run-local.sh') diff --git a/syz-cluster/run-local.sh b/syz-cluster/run-local.sh index 75e7867bc..f4d311a32 100755 --- a/syz-cluster/run-local.sh +++ b/syz-cluster/run-local.sh @@ -14,7 +14,7 @@ alias kubectl="minikube kubectl --" # Clean up in case the run comand was prematurely aborted. # TODO: find out how to rely on envs from overlays/dev/global-config.yaml. kubectl delete pod run-local >/dev/null 2>&1 || true -kubectl run run-local --image="$name-local" \ +kubectl run run-local --image="local/$name" \ --image-pull-policy=Never \ --restart=Never \ --env="SPANNER_EMULATOR_HOST=cloud-spanner-emulator:9010" \ -- cgit mrf-deployment