Skip to content

Commit

Permalink
Add retry mechanism for AWS CLI command in upgrade run script
Browse files Browse the repository at this point in the history
  • Loading branch information
ptankov committed Jan 19, 2025
1 parent ab7ac10 commit c4852a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion e2e-tests/upgrade/run
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ function main() {
run_mongo 'use myApp\n db.test.drop()' "myApp:myPass@${cluster}-rs0.${namespace}"

backup_dest_minio=$(get_backup_dest "$backup_name_minio")
kubectl_bin run -i --rm aws-cli --image=perconalab/awscli --restart=Never -- \
retry 3 5 kubectl_bin run -i --rm aws-cli --image=perconalab/awscli --restart=Never -- \
/usr/bin/env AWS_ACCESS_KEY_ID=some-access-key AWS_SECRET_ACCESS_KEY=some-secret-key AWS_DEFAULT_REGION=us-east-1 \
/usr/bin/aws --endpoint-url http://minio-service:9000 s3 ls s3://${backup_dest_minio}/rs0/ \
| grep myApp.test.gz
Expand Down

0 comments on commit c4852a3

Please sign in to comment.