From 982a330981b193e954d120b6d88ecb77cc86d4c1 Mon Sep 17 00:00:00 2001 From: samzong Date: Fri, 5 Dec 2025 09:27:03 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20chore(kube):=20generate=20kind?= =?UTF-8?q?=20config=20if=20missing=20before=20cluster=20creation?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: samzong --- tools/make/kube.mk | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tools/make/kube.mk b/tools/make/kube.mk index 0ff5b34fd..1900de727 100644 --- a/tools/make/kube.mk +++ b/tools/make/kube.mk @@ -31,6 +31,10 @@ create-cluster: ## Create a kind cluster with optimized configuration exit 0; \ fi; \ fi + @if [ ! -f "$(KIND_CONFIG_FILE)" ]; then \ + echo "$(YELLOW)[INFO]$(NC) Kind config not found: $(KIND_CONFIG_FILE). Generating..."; \ + bash tools/kind/generate-kind-config.sh; \ + fi @echo "$(BLUE)[INFO]$(NC) Creating cluster with config: $(KIND_CONFIG_FILE)" @mkdir -p /tmp/kind-semantic-router @kind create cluster --name $(KIND_CLUSTER_NAME) --config $(KIND_CONFIG_FILE)