From a46938e1beb8f56842c839f87f82f4a27d5d1070 Mon Sep 17 00:00:00 2001 From: "Christian M. Adams" Date: Mon, 3 May 2021 22:41:46 -0400 Subject: [PATCH] Retrieve pg secret values consistently, do not hardcode secret names --- roles/installer/templates/tower_postgres.yaml.j2 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/roles/installer/templates/tower_postgres.yaml.j2 b/roles/installer/templates/tower_postgres.yaml.j2 index 694a6940..2df6194e 100644 --- a/roles/installer/templates/tower_postgres.yaml.j2 +++ b/roles/installer/templates/tower_postgres.yaml.j2 @@ -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