Skip to content

Commit

Permalink
sanity check gcloud auth
Browse files Browse the repository at this point in the history
  • Loading branch information
Linus Arver committed Apr 2, 2020
1 parent 2baedb3 commit d7d8087
Showing 3 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions infra/gcp/backup_tools/backup_lib.sh
Original file line number Diff line number Diff line change
@@ -52,3 +52,9 @@ EOF
# Perform backup by copying all images recursively over.
"${GCRANE_CHECKOUT_DIR}/cmd/gcrane/gcrane" cp -r -j 10 "${source_gcr_repo}" "${backup_gcr_repo}"
}

cred_sanity_check()
{
# Sanity check
gcloud auth list
}
3 changes: 3 additions & 0 deletions infra/gcp/backup_tools/backup_prod.sh
Original file line number Diff line number Diff line change
@@ -42,6 +42,9 @@ prod_repos=(
us.gcr.io/k8s-artifacts-prod
)

# Sanity check
gcloud auth list

# Build gcrane first.
build_gcrane

3 changes: 3 additions & 0 deletions infra/gcp/backup_tools/backup_test.sh
Original file line number Diff line number Diff line change
@@ -122,6 +122,9 @@ declare -A test_repos=(
#[eu.gcr.io/k8s-gcr-backup-test-prod]=eu.gcr.io/k8s-gcr-backup-test-prod-bak
)

# Sanity check.
cred_sanity_check

# Build dependencies.
build_gcrane
build_cip

0 comments on commit d7d8087

Please sign in to comment.