File tree 2 files changed +1
-4
lines changed
2 files changed +1
-4
lines changed Original file line number Diff line number Diff line change @@ -742,12 +742,10 @@ verify-container-images: ## Verify container images
742
742
.PHONY : kind-create
743
743
kind-create : $(KUBECTL ) # # Create capz kind cluster if needed.
744
744
./scripts/kind-with-registry.sh
745
- unset MGMT_CLUSTER_TYPE
746
745
747
746
.PHONY : aks-create
748
747
aks-create : $(KUBECTL ) # # Create aks cluster as mgmt cluster.
749
748
./scripts/aks-as-mgmt.sh
750
- export MGMT_CLUSTER_TYPE=aks
751
749
752
750
.PHONY : tilt-up
753
751
tilt-up : install-tools # # Start tilt and build kind cluster if needed.
Original file line number Diff line number Diff line change @@ -50,9 +50,8 @@ if "allowed_contexts" in settings:
50
50
if "default_registry" in settings :
51
51
default_registry (settings .get ("default_registry" ))
52
52
53
- mgmt_cluster_type = os .getenv ("MGMT_CLUSTER_TYPE" , "" )
54
53
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" , "" ) :
56
55
print ("Using AKS as management cluster, setting os_arch to amd64" )
57
56
os_arch = "amd64"
58
57
You can’t perform that action at this time.
0 commit comments