File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -742,10 +742,12 @@ verify-container-images: ## Verify container images
742742.PHONY : kind-create
743743kind-create : $(KUBECTL ) # # Create capz kind cluster if needed.
744744 ./scripts/kind-with-registry.sh
745+ unset MGMT_CLUSTER_TYPE
745746
746747.PHONY : aks-create
747748aks-create : $(KUBECTL ) # # Create aks cluster as mgmt cluster.
748749 ./scripts/aks-as-mgmt.sh
750+ export MGMT_CLUSTER_TYPE=aks
749751
750752.PHONY : tilt-up
751753tilt-up : install-tools # # Start tilt and build kind cluster if needed.
Original file line number Diff line number Diff line change @@ -50,8 +50,9 @@ if "allowed_contexts" in settings:
5050if "default_registry" in settings :
5151 default_registry (settings .get ("default_registry" ))
5252
53+ mgmt_cluster_type = os .getenv ("MGMT_CLUSTER_TYPE" , "" )
5354os_arch = str (local ("go env GOARCH" )).rstrip ("\n " )
54- if "aks" in settings . get ( "kustomize_substitutions" , {}). get ( "MGMT_CLUSTER_NAME" , "" ) :
55+ if mgmt_cluster_type == "aks" :
5556 print ("Using AKS as management cluster, setting os_arch to amd64" )
5657 os_arch = "amd64"
5758
You can’t perform that action at this time.
0 commit comments