Retrieve pg secret values consistently, do not hardcode secret names

This commit is contained in:
Christian M. Adams
2021-05-03 22:41:46 -04:00
parent 8af0681373
commit a46938e1be

View File

@@ -36,17 +36,17 @@ spec:
- name: POSTGRESQL_DATABASE
valueFrom:
secretKeyRef:
name: '{{ meta.name }}-postgres-configuration'
name: '{{ postgres_configuration_secret }}'
key: database
- name: POSTGRESQL_USER
valueFrom:
secretKeyRef:
name: '{{ meta.name }}-postgres-configuration'
name: '{{ postgres_configuration_secret }}'
key: username
- name: POSTGRESQL_PASSWORD
valueFrom:
secretKeyRef:
name: '{{ meta.name }}-postgres-configuration'
name: '{{ postgres_configuration_secret }}'
key: password
# For tower_postgres_image based on postgres