Skip to content

Commit 2b9c821

Browse files
authored
Merge pull request #5876 from willie-yao/aks-name-fix
Use random suffix for aks mgmt cluster name
2 parents 2a6076b + 883b25b commit 2b9c821

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -768,7 +768,7 @@ kind-create-bootstrap: $(KUBECTL) ## Create capz kind bootstrap cluster.
768768
create-bootstrap: $(KUBECTL) ## Create bootstrap cluster (AKS or KIND) for CAPZ testing. Default is KIND.
769769
@echo "Creating bootstrap cluster with type: $(MGMT_CLUSTER_TYPE)"
770770
@if [ "$(MGMT_CLUSTER_TYPE)" == "aks" ]; then \
771-
MGMT_CLUSTER_NAME="$${MGMT_CLUSTER_NAME:-capz-e2e-$(shell date +%s)}" \
771+
MGMT_CLUSTER_NAME="$${MGMT_CLUSTER_NAME:-capz-e2e-$(RANDOM_SUFFIX)}" \
772772
./scripts/aks-as-mgmt.sh || { echo "Failed to create AKS bootstrap cluster" >&2; exit 1; }; \
773773
else \
774774
KIND_CLUSTER_NAME=capz-e2e ./scripts/kind-with-registry.sh || { echo "Failed to create KIND bootstrap cluster" >&2; exit 1; }; \

0 commit comments

Comments
 (0)