Skip to content

Commit 99beb08

Browse files
committed
reuse AZWI_STORAGE_CONTAINER
Signed-off-by: Jack Francis <[email protected]>
1 parent d1f77b3 commit 99beb08

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

scripts/kind-with-registry.sh

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -135,9 +135,9 @@ EOF
135135
AZWI_JWKS_JSON_FILEPATH="${REPO_ROOT}/jwks.json"
136136
"${AZWI}" jwks --public-keys "${SERVICE_ACCOUNT_SIGNING_PUB_FILEPATH}" --output-file "${AZWI_JWKS_JSON_FILEPATH}"
137137
echo "Uploading openid-configuration document to '${AZWI_STORAGE_ACCOUNT}' storage account"
138-
upload_to_blob "${AZWI_STORAGE_CONTAINER}" "${AZWI_OPENID_CONFIG_FILEPATH}" ".well-known/openid-configuration"
138+
upload_to_blob "${AZWI_OPENID_CONFIG_FILEPATH}" ".well-known/openid-configuration"
139139
echo "Uploading jwks document to '${AZWI_STORAGE_ACCOUNT}' storage account"
140-
upload_to_blob "${AZWI_STORAGE_CONTAINER}" "${AZWI_JWKS_JSON_FILEPATH}" "openid/v1/jwks"
140+
upload_to_blob "${AZWI_JWKS_JSON_FILEPATH}" "openid/v1/jwks"
141141
echo "Removing key access on storage account as no further data writes are required"
142142
az storage account update -n "${AZWI_STORAGE_ACCOUNT}" -g "${AZWI_RESOURCE_GROUP}" --subscription "${AZURE_SUBSCRIPTION_ID}" --allow-shared-key-access=false --output none --only-show-errors
143143
fi
@@ -167,13 +167,12 @@ EOF
167167
}
168168

169169
function upload_to_blob() {
170-
local container_name=$1
171-
local file_path=$2
172-
local blob_name=$3
170+
local file_path=$1
171+
local blob_name=$2
173172

174173
echo "Uploading ${file_path} to '${AZWI_STORAGE_ACCOUNT}' storage account"
175174
az storage blob upload \
176-
--container-name "${container_name}" \
175+
--container-name "${AZWI_STORAGE_CONTAINER}" \
177176
--file "${file_path}" \
178177
--name "${blob_name}" \
179178
--account-name "${AZWI_STORAGE_ACCOUNT}" \

0 commit comments

Comments
 (0)