diff --git a/pgbouncer/Chart.yaml b/pgbouncer/Chart.yaml index fbb38ee9..118f62ca 100644 --- a/pgbouncer/Chart.yaml +++ b/pgbouncer/Chart.yaml @@ -1,5 +1,5 @@ name: pgbouncer -version: 0.1.1 +version: 0.1.2 appVersion: 1.8.1 description: PgBouncer - lightweight connection pooler for PostgreSQL keywords: diff --git a/pgbouncer/templates/deployment.yaml b/pgbouncer/templates/deployment.yaml index 831586ea..7f56f675 100644 --- a/pgbouncer/templates/deployment.yaml +++ b/pgbouncer/templates/deployment.yaml @@ -49,11 +49,10 @@ spec: - name: pgbouncer image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}" imagePullPolicy: {{ .Values.image.pullPolicy }} + {{ if .Values.image.command }} command: - - pgbouncer - - -u - - pgbouncer - - /etc/pgbouncer/pgbouncer.ini + {{ toYaml .Values.image.command | nindent 12 }} + {{ end }} env: {{- include "pgbouncer.environment" . | nindent 12 }} ports: diff --git a/pgbouncer/values.yaml b/pgbouncer/values.yaml index 3cc7be53..5e1b7656 100644 --- a/pgbouncer/values.yaml +++ b/pgbouncer/values.yaml @@ -6,6 +6,7 @@ replicaCount: 1 image: repository: quay.io/centerforopenscience/pgbouncer tag: '1.8.1' + command: [ 'pgbouncer', '-u', 'pgbouncer', '/etc/pgbouncer/pgbouncer.ini' ] pullPolicy: Always antiAffinity: soft