-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert "[DDO-3749] use gsm instead of vault" (#1633)
- Loading branch information
1 parent
2885912
commit 2648a79
Showing
4 changed files
with
10 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,6 +5,7 @@ set -e | |
set -x | ||
|
||
ENV=$1 | ||
VAULT_TOKEN=${2:-$(cat $HOME/.vault-token)} | ||
WORKING_DIR=${3:-$PWD} | ||
NEED_TOKEN=false | ||
|
||
|
@@ -16,16 +17,7 @@ else | |
echo "Starting canary test in Production" | ||
fi | ||
|
||
DOCKER_ARGS=( | ||
"run" | ||
"--rm" | ||
"-v ${HOME}/.config/gcloud:/root/.config/gcloud" | ||
"google/cloud-sdk" | ||
) | ||
|
||
SECRET_ACCESS_ACCOUNT=jenkins-firecloud@broad-dsp-techops.iam.gserviceaccount.com | ||
# Expand the array of args and pass them to `docker` | ||
JSON_CREDS=$(docker ${DOCKER_ARGS[*]} /bin/bash -c "gcloud config set account ${SECRET_ACCESS_ACCOUNT} && gcloud secrets versions access latest --project broad-dsde-dev --secret firecloud-sa") | ||
JSON_CREDS=`docker run --rm -e VAULT_TOKEN=$VAULT_TOKEN -e VAULT_ADDR=https://clotho.broadinstitute.org:8200 broadinstitute/dsde-toolbox vault read -format=json secret/dsde/firecloud/prod/common/canary/firecloud-account.json | jq '.data'` | ||
|
||
users=( | ||
[email protected] | ||
|
@@ -66,7 +58,7 @@ if [ $ENV = "prod" ]; then | |
|
||
do | ||
echo $i | ||
sleep 60 | ||
sleep 1m | ||
monitorSubmission [email protected] broad-firecloud-dsde CanaryTest $submissionId | ||
((i++)) | ||
done | ||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,6 +6,7 @@ set -e | |
set -x | ||
|
||
ENV=$1 | ||
VAULT_TOKEN=${2:-$(cat $HOME/.vault-token)} | ||
WORKING_DIR=${3:-$PWD} | ||
NEED_TOKEN=false | ||
|
||
|
@@ -17,17 +18,7 @@ else | |
echo "Starting complex workflow test in Production" | ||
fi | ||
|
||
|
||
DOCKER_ARGS=( | ||
"run" | ||
"--rm" | ||
"-v ${HOME}/.config/gcloud:/root/.config/gcloud" | ||
"google/cloud-sdk" | ||
) | ||
|
||
SECRET_ACCESS_ACCOUNT=jenkins-firecloud@broad-dsp-techops.iam.gserviceaccount.com | ||
# Expand the array of args and pass them to `docker` | ||
JSON_CREDS=$(docker ${DOCKER_ARGS[*]} /bin/bash -c "gcloud config set account ${SECRET_ACCESS_ACCOUNT} && gcloud secrets versions access latest --project broad-dsde-dev --secret firecloud-sa") | ||
JSON_CREDS=`docker run --rm -e VAULT_TOKEN=$VAULT_TOKEN -e VAULT_ADDR=https://clotho.broadinstitute.org:8200 broadinstitute/dsde-toolbox vault read -format=json secret/dsde/firecloud/prod/common/canary/firecloud-account.json | jq '.data'` | ||
|
||
users=( | ||
[email protected] | ||
|
@@ -68,7 +59,7 @@ if [ $ENV = "prod" ]; then | |
|
||
do | ||
echo $i | ||
sleep 300 | ||
sleep 5m | ||
monitorSubmission [email protected] broad-firecloud-dsde complex-featured-workflow $submissionId | ||
((i++)) | ||
done | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters