@@ -77,10 +77,10 @@ setup() {
7777}
7878
7979main () {
80- if [[ " $( az storage container exists --name " ${AZURE_BLOB_CONTAINER_NAME} " --query exists --output tsv) " == " false" ]]; then
80+ if [[ " $( az storage container exists --name " ${AZURE_BLOB_CONTAINER_NAME} " --query exists --output tsv --auth-mode login ) " == " false" ]]; then
8181 echo " Creating ${AZURE_BLOB_CONTAINER_NAME} storage container"
82- az storage container create --name " ${AZURE_BLOB_CONTAINER_NAME} " > /dev/null
83- az storage container set-permission --name " ${AZURE_BLOB_CONTAINER_NAME} " --public-access container > /dev/null
82+ az storage container create --name " ${AZURE_BLOB_CONTAINER_NAME} " --auth-mode login > /dev/null
83+ az storage container set-permission --name " ${AZURE_BLOB_CONTAINER_NAME} " --auth-mode login -- public-access container > /dev/null
8484 fi
8585
8686 if [[ " ${KUBE_BUILD_CONFORMANCE:- } " =~ [yY] ]]; then
@@ -113,7 +113,7 @@ main() {
113113 for BINARY in " ${BINARIES[@]} " ; do
114114 BIN_PATH=" ${KUBE_GIT_VERSION} /bin/linux/amd64/${BINARY} "
115115 echo " uploading ${BIN_PATH} "
116- az storage blob upload --overwrite --container-name " ${AZURE_BLOB_CONTAINER_NAME} " --file " ${KUBE_ROOT} /_output/dockerized/bin/linux/amd64/${BINARY} " --name " ${BIN_PATH} "
116+ az storage blob upload --auth-mode login -- overwrite --container-name " ${AZURE_BLOB_CONTAINER_NAME} " --file " ${KUBE_ROOT} /_output/dockerized/bin/linux/amd64/${BINARY} " --name " ${BIN_PATH} "
117117 done
118118
119119 if [[ " ${TEST_WINDOWS:- } " == " true" ]]; then
@@ -126,7 +126,7 @@ main() {
126126 for BINARY in " ${WINDOWS_BINARIES[@]} " ; do
127127 BIN_PATH=" ${KUBE_GIT_VERSION} /bin/windows/amd64/${BINARY} .exe"
128128 echo " uploading ${BIN_PATH} "
129- az storage blob upload --overwrite --container-name " ${AZURE_BLOB_CONTAINER_NAME} " --file " ${KUBE_ROOT} /_output/dockerized/bin/windows/amd64/${BINARY} .exe" --name " ${BIN_PATH} "
129+ az storage blob upload --auth-mode login -- overwrite --container-name " ${AZURE_BLOB_CONTAINER_NAME} " --file " ${KUBE_ROOT} /_output/dockerized/bin/windows/amd64/${BINARY} .exe" --name " ${BIN_PATH} "
130130 done
131131 fi
132132 fi
@@ -141,14 +141,14 @@ can_reuse_artifacts() {
141141 done
142142
143143 for BINARY in " ${BINARIES[@]} " ; do
144- if [[ " $( az storage blob exists --container-name " ${AZURE_BLOB_CONTAINER_NAME} " --name " ${KUBE_GIT_VERSION} /bin/linux/amd64/${BINARY} " --query exists --output tsv) " == " false" ]]; then
144+ if [[ " $( az storage blob exists --auth-mode login -- container-name " ${AZURE_BLOB_CONTAINER_NAME} " --name " ${KUBE_GIT_VERSION} /bin/linux/amd64/${BINARY} " --query exists --output tsv) " == " false" ]]; then
145145 echo " false" && return
146146 fi
147147 done
148148
149149 if [[ " ${TEST_WINDOWS:- } " == " true" ]]; then
150150 for BINARY in " ${WINDOWS_BINARIES[@]} " ; do
151- if [[ " $( az storage blob exists --container-name " ${AZURE_BLOB_CONTAINER_NAME} " --name " ${KUBE_GIT_VERSION} /bin/windows/amd64/${BINARY} .exe" --query exists --output tsv) " == " false" ]]; then
151+ if [[ " $( az storage blob exists --auth-mode login -- container-name " ${AZURE_BLOB_CONTAINER_NAME} " --name " ${KUBE_GIT_VERSION} /bin/windows/amd64/${BINARY} .exe" --query exists --output tsv) " == " false" ]]; then
152152 echo " false" && return
153153 fi
154154 done
0 commit comments