Skip to content

Commit

Permalink
fix: skip setting up cedar-ingest client cred in ci (#2526)
Browse files Browse the repository at this point in the history
* fix: skip setting up cedar-ingest client cred in ci

* fix cleanup

---------

Co-authored-by: Hara Prasad <haraprasadj@uchicago.edu>
  • Loading branch information
mfshao and haraprasadj authored Apr 23, 2024
1 parent b68908f commit 40be00d
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions gen3/bin/kube-setup-cedar-wrapper.sh
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,12 @@ if ! g3kubectl get secrets/cedar-g3auto > /dev/null 2>&1; then
return 1
fi

gen3_log_info "Checking cedar-client creds"
setup_creds
if [[ -n "$JENKINS_HOME" ]]; then
gen3_log_info "Skipping cedar-client creds setup in non-adminvm environment"
else
gen3_log_info "Checking cedar-client creds"
setup_creds
fi

if ! gen3 secrets decode cedar-g3auto cedar_api_key.txt > /dev/null 2>&1; then
gen3_log_err "No CEDAR api key present in cedar-g3auto secret, not rolling CEDAR wrapper"
Expand Down

0 comments on commit 40be00d

Please sign in to comment.