PostgreSQL: Properly handle variable name difference when using Red Hat containers

This commit is contained in:
Yanis Guenane
2021-04-29 17:33:05 +02:00
parent 7361defa17
commit 2965a9091e

View File

@@ -32,6 +32,24 @@ spec:
- image: '{{ tower_postgres_image }}:{{ tower_postgres_image_version }}'
name: postgres
env:
# For tower_postgres_image based on rhel8/postgresql-12
- name: POSTGRESQL_DATABASE
valueFrom:
secretKeyRef:
name: '{{ meta.name }}-postgres-configuration'
key: database
- name: POSTGRESQL_USER
valueFrom:
secretKeyRef:
name: '{{ meta.name }}-postgres-configuration'
key: username
- name: POSTGRESQL_PASSWORD
valueFrom:
secretKeyRef:
name: '{{ meta.name }}-postgres-configuration'
key: password
# For tower_postgres_image based on postgres
- name: POSTGRES_DB
valueFrom:
secretKeyRef: