mirror of
https://github.com/zalando/postgres-operator.git
synced 2026-10-01 01:35:35 +02:00
* build multi-arch pooler image * add pooler build step in delivery.yaml and bump pooler version * pull from docker hub not zalando registry * add pooler step to ghcr workflow * pass infra roles to auth file via pooler entrypoint * introduce extra pooler secret for mounting auth_file * use pbgouncer as image name and push to ghcr on next merge * build with latest pgbouncer * integrate new image in e2e process and update pooler image default * update pooler build dependencies * build pooler image for e2e test * more Makefile and e2e run script tweaking --------- Co-authored-by: Ida Novindasari <idanovinda@gmail.com>
20 lines
649 B
Bash
Executable File
20 lines
649 B
Bash
Executable File
#!/bin/sh
|
|
|
|
set -ex
|
|
|
|
if [ -z "${CONNECTION_POOLER_CLIENT_TLS_CRT}" ]; then
|
|
openssl req -nodes -new -x509 -subj /CN=spilo.dummy.org \
|
|
-keyout /etc/ssl/certs/pgbouncer.key \
|
|
-out /etc/ssl/certs/pgbouncer.crt
|
|
else
|
|
ln -s ${CONNECTION_POOLER_CLIENT_TLS_CRT} /etc/ssl/certs/pgbouncer.crt
|
|
ln -s ${CONNECTION_POOLER_CLIENT_TLS_KEY} /etc/ssl/certs/pgbouncer.key
|
|
if [ ! -z "${CONNECTION_POOLER_CLIENT_CA_FILE}" ]; then
|
|
ln -s ${CONNECTION_POOLER_CLIENT_CA_FILE} /etc/ssl/certs/ca.crt
|
|
fi
|
|
fi
|
|
|
|
envsubst < /etc/pgbouncer/pgbouncer.ini.tmpl > /etc/pgbouncer/pgbouncer.ini
|
|
|
|
exec /bin/pgbouncer /etc/pgbouncer/pgbouncer.ini
|