Verified Commit a3833666 authored by Philip Graf's avatar Philip Graf
Browse files

feat: make cloud sql instance id configurable

parent e037e835
Pipeline #108325 passed with stage
in 10 seconds
......@@ -79,7 +79,7 @@ image: gcr.io/cloudsql-docker/gce-proxy:1.11
command: ["/bin/sh", "-c"]
args:
- |
/cloud_sql_proxy -instances={{ .Values.cloudsql.projectId}}:{{ .Values.cloudsql.region}}:{{ .Release.Namespace }}=tcp:5432 -credential_file=/secrets/cloudsql/credentials.json &
/cloud_sql_proxy -instances={{ .Values.cloudsql.projectId}}:{{ .Values.cloudsql.region}}:{{ default .Release.Namespace .Values.cloudsql.instanceId }}=tcp:5432 -credential_file=/secrets/cloudsql/credentials.json &
CHILD_PID=$!
(while true; do if [[ -f "/tmp/pod/main-terminated" ]]; then kill $CHILD_PID; fi; sleep 1; done) &
wait $CHILD_PID
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment