Skip to content

Commit 9061431

Browse files
samzongrootfs
andauthored
🔧 chore(kube): generate kind config if missing before cluster creation (#775)
Signed-off-by: samzong <[email protected]> Co-authored-by: Huamin Chen <[email protected]>
1 parent 588ab7a commit 9061431

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

‎tools/make/kube.mk‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,10 @@ create-cluster: ## Create a kind cluster with optimized configuration
3131
exit 0; \
3232
fi; \
3333
fi
34+
@if [ ! -f "$(KIND_CONFIG_FILE)" ]; then \
35+
echo "$(YELLOW)[INFO]$(NC) Kind config not found: $(KIND_CONFIG_FILE). Generating..."; \
36+
bash tools/kind/generate-kind-config.sh; \
37+
fi
3438
@echo "$(BLUE)[INFO]$(NC) Creating cluster with config: $(KIND_CONFIG_FILE)"
3539
@mkdir -p /tmp/kind-semantic-router
3640
@kind create cluster --name $(KIND_CLUSTER_NAME) --config $(KIND_CONFIG_FILE)

0 commit comments

Comments
 (0)