Fix CI/CD bug with PGSSLROOTCERT.

Because I pushed the environment variable changes to the cluster
already, psycopg2 was automatically trying to connect to the database
using the file specified in PGSSLROOTCERT. That ConfigMap was not
mounted into the migrations container, so I'm doing that here.
This commit is contained in:
dandds
2019-10-17 14:32:27 -04:00
parent 09f718b1d3
commit 4169dcb310
2 changed files with 11 additions and 1 deletions

View File

@@ -28,7 +28,7 @@ if echo "$JOB_SUCCESS" | grep -q "condition met"; then
else
POD_NAME=$(${K8S_CMD} -n atat get pods -l job-name=migration -o=jsonpath='{.items[0].metadata.name}')
echo "Job failed:"
$K8S_CMD -n atat log $POD_NAME
$K8S_CMD -n atat logs $POD_NAME
delete_job
exit 1
fi