Skip to content

Commit

Permalink
Fixes to dev env / db restorer from updating CloudSQL proxy setup to …
Browse files Browse the repository at this point in the history
…match latest Google documentation
  • Loading branch information
wcjordan committed May 4, 2024
1 parent ad7094e commit 75631b1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions helm/templates/db-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ spec:
- name: cloud-sql-proxy
image: gcr.io/cloud-sql-connectors/cloud-sql-proxy:latest
args:
- "--exit-zero-on-sigterm"
- "--structured-logs"
- "--port=5432"
- {{ printf "%s:us-east4:%s" .Values.gcpProject (include "..dbInstanceName" .) | quote }}
Expand Down
4 changes: 2 additions & 2 deletions misc_containers/db_restorer/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,5 @@ else
psql < ./backup_to_restore.sql
fi

# Kill cloud_sql_proxy so the job will complete
kill -INT $(pgrep cloud_sql_proxy)
# Kill cloud-sql-proxy so the job will complete
kill -SIGTERM -INT $(pgrep cloud-sql-proxy)

0 comments on commit 75631b1

Please sign in to comment.