Skip to content

Commit 30bd7ab

Browse files
committed
Fix bash syntax for make cleanup-workload-identity
1 parent 398697b commit 30bd7ab

File tree

4 files changed

+9
-1
lines changed

4 files changed

+9
-1
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -778,7 +778,7 @@ create-bootstrap: $(KUBECTL) ## Create bootstrap cluster (AKS or KIND) for CAPZ
778778
.PHONY: cleanup-workload-identity
779779
cleanup-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
## --------------------------------------

hack/util.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff 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+
}

scripts/ci-conformance.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,8 @@ export AZURE_LOCATION_EDGEZONE="${AZURE_LOCATION_EDGEZONE:-$(capz::util::get_ran
8282
export AZURE_CONTROL_PLANE_MACHINE_TYPE="${AZURE_CONTROL_PLANE_MACHINE_TYPE:-"Standard_B2s"}"
8383
export AZURE_NODE_MACHINE_TYPE="${AZURE_NODE_MACHINE_TYPE:-"Standard_B2s"}"
8484
export WINDOWS="${WINDOWS:-false}"
85+
AZWI_RESOURCE_GROUP=capz-wi-$(capz::util::random_suffix)
86+
export AZWI_RESOURCE_GROUP
8587

8688
# Generate SSH key.
8789
capz::util::generate_ssh_key

scripts/ci-e2e.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,8 @@ export AZURE_CONTROL_PLANE_MACHINE_TYPE="${AZURE_CONTROL_PLANE_MACHINE_TYPE:-"St
7070
export AZURE_NODE_MACHINE_TYPE="${AZURE_NODE_MACHINE_TYPE:-"Standard_B2s"}"
7171
CALICO_VERSION=$(make get-calico-version)
7272
export CALICO_VERSION
73+
AZWI_RESOURCE_GROUP=capz-wi-$(capz::util::random_suffix)
74+
export AZWI_RESOURCE_GROUP
7375

7476

7577
capz::util::generate_ssh_key

0 commit comments

Comments
 (0)