-
Notifications
You must be signed in to change notification settings - Fork 7.5k
overwrite flag added to az storage blob upload-batch #10726
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Signed-off-by: Sourik Ghosh <sourikghosh31@gmail.com>
|
/lgtm |
|
@jdolitsky can you have a look at this |
jdolitsky
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was thinking about this. The new behavior actually protects from supply chain attacks.
Could you modify this to only add --overwrite if [[ "${VERSION}" == "canary" ]] ?
Signed-off-by: Sourik Ghosh <sourikghosh31@gmail.com>
| if [[ "${VERSION}" == "canary" ]]; then | ||
| az storage blob upload-batch -s _dist/ -d "$AZURE_STORAGE_CONTAINER_NAME" --pattern 'helm-*' --connection-string "$AZURE_STORAGE_CONNECTION_STRING" --overwrite | ||
| else | ||
| az storage blob upload-batch -s _dist/ -d "$AZURE_STORAGE_CONTAINER_NAME" --pattern 'helm-*' --connection-string "$AZURE_STORAGE_CONNECTION_STRING" | ||
| if |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
last thing, can we format this?
if [[ "${VERSION}" == "canary" ]]; then
az storage blob upload-batch -s _dist/ -d "$AZURE_STORAGE_CONTAINER_NAME" --pattern 'helm-*' --connection-string "$AZURE_STORAGE_CONNECTION_STRING" --overwrite
else
az storage blob upload-batch -s _dist/ -d "$AZURE_STORAGE_CONTAINER_NAME" --pattern 'helm-*' --connection-string "$AZURE_STORAGE_CONNECTION_STRING"
if
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ohhh snap,,, yeah yeah
Signed-off-by: Sourik Ghosh <sourikghosh31@gmail.com>
|
thanks @sourikghosh ! |
Signed-off-by: Sourik Ghosh sourikghosh31@gmail.com
What this PR does / why we need it:
adds a overwrite flag to az storage blob upload-batch to replace canary.
closes #10724
Special notes for your reviewer:
If applicable: