File tree Expand file tree Collapse file tree 4 files changed +9
-1
lines changed Expand file tree Collapse file tree 4 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -778,7 +778,7 @@ create-bootstrap: $(KUBECTL) ## Create bootstrap cluster (AKS or KIND) for CAPZ
778778.PHONY : cleanup-workload-identity
779779cleanup-workload-identity : # # Cleanup CI workload-identity infra
780780 @if ! [ " $( AZWI_SKIP_CLEANUP) " == " true" ]; then \
781- ./scripts/cleanup-workload-identity.sh \
781+ ./scripts/cleanup-workload-identity.sh; \
782782 fi
783783
784784# # --------------------------------------
Original file line number Diff line number Diff line change @@ -114,3 +114,7 @@ capz::util::ensure_azure_envs() {
114114 : " ${AZURE_SUBSCRIPTION_ID:? Environment variable empty or not defined.} "
115115 : " ${AZURE_TENANT_ID:? Environment variable empty or not defined.} "
116116}
117+
118+ capz::util::random_suffix () {
119+ od -An -N8 -tx8 /dev/urandom | tr -d ' ' | head -c 16
120+ }
Original file line number Diff line number Diff line change @@ -82,6 +82,8 @@ export AZURE_LOCATION_EDGEZONE="${AZURE_LOCATION_EDGEZONE:-$(capz::util::get_ran
8282export AZURE_CONTROL_PLANE_MACHINE_TYPE=" ${AZURE_CONTROL_PLANE_MACHINE_TYPE:- " Standard_B2s" } "
8383export AZURE_NODE_MACHINE_TYPE=" ${AZURE_NODE_MACHINE_TYPE:- " Standard_B2s" } "
8484export WINDOWS=" ${WINDOWS:- false} "
85+ AZWI_RESOURCE_GROUP=capz-wi-$( capz::util::random_suffix)
86+ export AZWI_RESOURCE_GROUP
8587
8688# Generate SSH key.
8789capz::util::generate_ssh_key
Original file line number Diff line number Diff line change @@ -70,6 +70,8 @@ export AZURE_CONTROL_PLANE_MACHINE_TYPE="${AZURE_CONTROL_PLANE_MACHINE_TYPE:-"St
7070export AZURE_NODE_MACHINE_TYPE=" ${AZURE_NODE_MACHINE_TYPE:- " Standard_B2s" } "
7171CALICO_VERSION=$( make get-calico-version)
7272export CALICO_VERSION
73+ AZWI_RESOURCE_GROUP=capz-wi-$( capz::util::random_suffix)
74+ export AZWI_RESOURCE_GROUP
7375
7476
7577capz::util::generate_ssh_key
You can’t perform that action at this time.
0 commit comments