Skip to content

Commit

Permalink
refactor: renames cluster name var
Browse files Browse the repository at this point in the history
Signed-off-by: Amit Singh <[email protected]>
  • Loading branch information
semmet95 committed Dec 29, 2024
1 parent 4c95357 commit 21fb2e0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
CLUSTER_NAME = "test-env"
TEST_CLUSTER_NAME = "test-env"
CNPG_VERSION ?= "1.24.0"
PG_HOST ?= "http://127.0.0.1"
PG_USER_PASSWORD ?= "test_123"
Expand Down Expand Up @@ -39,12 +39,12 @@ start: codegen
go run main.go

k3d-cleanup:
@if k3d cluster list | grep -q "^$(CLUSTER_NAME) "; then \
k3d cluster delete "$(CLUSTER_NAME)"; \
@if k3d cluster list | grep -q "^$(TEST_CLUSTER_NAME) "; then \
k3d cluster delete "$(TEST_CLUSTER_NAME)"; \
fi

k3d-setup: k3d-cleanup
k3d cluster create $(CLUSTER_NAME) --servers 1 --agents 1
k3d cluster create $(TEST_CLUSTER_NAME) --servers 1 --agents 1
@echo -e "\n\n"

cnpg-controller-setup:
Expand Down

0 comments on commit 21fb2e0

Please sign in to comment.