Skip to content

Commit 4294f63

Browse files
committed
ensure more uniqueness for CI storage accounts
Signed-off-by: Jack Francis <[email protected]>
1 parent f27ddf9 commit 4294f63

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)