Skip to content

Commit 95afc5f

Browse files
committed
Add kind support warning
Signed-off-by: Nick Masluk <nick@randombytes.net>
1 parent 9126b7d commit 95afc5f

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

Makefile

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ else
2222
$(error Unsupported platform: $(UNAME_S). Please use macOS or Linux (or WSL2 on Windows))
2323
endif
2424

25-
CONTAINER_TOOL := $(shell if command -v podman >/dev/null 2>&1; then echo podman; elif command -v docker >/dev/null 2>&1; then echo docker; else echo ""; fi)
25+
CONTAINER_TOOL := $(shell if command -v docker >/dev/null 2>&1; then echo docker; elif command -v podman >/dev/null 2>&1; then echo podman; else echo ""; fi)
2626

2727
# Configuration
2828
REGISTRY ?= quay.io
@@ -69,9 +69,10 @@ help: ## Display this help message
6969
##@ Setup & Installation
7070

7171
check-prereqs: ## Check if required tools are installed
72-
@printf "$(BLUE)Checking prerequisites...$(NC)\n"
73-
@[ -n "$(CONTAINER_TOOL)" ] || (printf "$(RED)docker or podman not found$(NC).\n" && exit 1)
72+
@printf "$(BLUE)Checking prerequisites...$(NC)\n"
73+
@[ -n "$(CONTAINER_TOOL)" ] || (printf "$(RED)Docker or Podman not found$(NC).\n" && exit 1)
7474
@printf "$(GREEN)$(CONTAINER_TOOL) found$(NC)\n"
75+
@[ "$(CONTAINER_TOOL)" == "podman" ] || (printf "$(YELLOW)✗ ⚠ Docker is required for kind cluster support. $(NC).\n")
7576
@command -v kubectl >/dev/null 2>&1 || (printf "$(RED)✗ kubectl not found$(NC). Run: brew install kubectl\n" && exit 1)
7677
@printf "$(GREEN)✓ kubectl found$(NC)\n"
7778
@command -v kind >/dev/null 2>&1 || (printf "$(RED)✗ kind not found$(NC). Run: brew install kind\n" && exit 1)

0 commit comments

Comments
 (0)