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 @@ -741,10 +741,12 @@ verify-container-images: ## Verify container images
741
741
.PHONY : kind-create
742
742
kind-create : $(KUBECTL ) # # Create capz kind cluster if needed.
743
743
./scripts/kind-with-registry.sh
744
+ unset MGMT_CLUSTER_TYPE
744
745
745
746
.PHONY : aks-create
746
747
aks-create : $(KUBECTL ) # # Create aks cluster as mgmt cluster.
747
748
./scripts/aks-as-mgmt.sh
749
+ export MGMT_CLUSTER_TYPE=aks
748
750
749
751
.PHONY : tilt-up
750
752
tilt-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:
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" , "" )
53
54
os_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" :
55
56
print ("Using AKS as management cluster, setting os_arch to amd64" )
56
57
os_arch = "amd64"
57
58
You can’t perform that action at this time.
0 commit comments