Skip to content

Commit 4f51214

Browse files
committed
Tilt starts by creating mgmt cluster based on env var
1 parent 40d693f commit 4f51214

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Makefile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -754,6 +754,13 @@ aks-create: $(KUBECTL) ## Create aks cluster as mgmt cluster.
754754

755755
.PHONY: tilt-up
756756
tilt-up: install-tools ## Start tilt and build kind cluster if needed.
757+
# Create management cluster.
758+
if [ -z "${USE_AKS_MANAGEMENT_CLUSTER}" ]; then \
759+
$(MAKE) kind-create ; \
760+
else \
761+
$(MAKE) aks-create ; \
762+
fi
763+
757764
@if [ -z "${AZURE_CLIENT_ID_USER_ASSIGNED_IDENTITY}" ]; then \
758765
export AZURE_CLIENT_ID_USER_ASSIGNED_IDENTITY=$(shell cat $(AZURE_IDENTITY_ID_FILEPATH)); \
759766
fi; \

0 commit comments

Comments
 (0)