Skip to content

Commit 00dfab1

Browse files
authored
Merge pull request #5353 from kubernetes-sigs/revert-5306-issue5289
Revert "Update Tiltfile to use env variable to check aks cluster is being used"
2 parents 6bce7f8 + c897f28 commit 00dfab1

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

Makefile

-2
Original file line numberDiff line numberDiff line change
@@ -742,12 +742,10 @@ verify-container-images: ## Verify container images
742742
.PHONY: kind-create
743743
kind-create: $(KUBECTL) ## Create capz kind cluster if needed.
744744
./scripts/kind-with-registry.sh
745-
unset MGMT_CLUSTER_TYPE
746745

747746
.PHONY: aks-create
748747
aks-create: $(KUBECTL) ## Create aks cluster as mgmt cluster.
749748
./scripts/aks-as-mgmt.sh
750-
export MGMT_CLUSTER_TYPE=aks
751749

752750
.PHONY: tilt-up
753751
tilt-up: install-tools ## Start tilt and build kind cluster if needed.

Tiltfile

+1-2
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,8 @@ if "allowed_contexts" in settings:
5050
if "default_registry" in settings:
5151
default_registry(settings.get("default_registry"))
5252

53-
mgmt_cluster_type = os.getenv("MGMT_CLUSTER_TYPE", "")
5453
os_arch = str(local("go env GOARCH")).rstrip("\n")
55-
if mgmt_cluster_type == "aks":
54+
if "aks" in settings.get("kustomize_substitutions", {}).get("MGMT_CLUSTER_NAME", ""):
5655
print("Using AKS as management cluster, setting os_arch to amd64")
5756
os_arch = "amd64"
5857

0 commit comments

Comments
 (0)