Skip to content

Commit 1be3cff

Browse files
authored
Merge pull request #5041 from jackfrancis/capz-sa-uniqueness
ensure more uniqueness for CI storage accounts
2 parents 032bf04 + 4294f63 commit 1be3cff

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/kind-with-registry.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ KUBECTL="${REPO_ROOT}/hack/tools/bin/kubectl"
2828
KIND="${REPO_ROOT}/hack/tools/bin/kind"
2929
AZWI="${REPO_ROOT}/hack/tools/bin/azwi"
3030
AZWI_ENABLED="${AZWI_ENABLED:-true}"
31-
RANDOM_SUFFIX="${RANDOM_SUFFIX:-$RANDOM}"
32-
export AZWI_STORAGE_ACCOUNT="oidcissuer${RANDOM_SUFFIX}"
31+
RANDOM_SUFFIX="${RANDOM_SUFFIX:-$(od -An -N4 -tu4 /dev/urandom | tr -d ' ' | head -c 8)}"
32+
export AZWI_STORAGE_ACCOUNT="capzcioidcissuer${RANDOM_SUFFIX}"
3333
export AZWI_STORAGE_CONTAINER="\$web"
3434
export AZWI_LOCATION="${AZURE_LOCATION:-southcentralus}"
3535
export SERVICE_ACCOUNT_ISSUER="${SERVICE_ACCOUNT_ISSUER:-}"

0 commit comments

Comments
 (0)