From 0730e0de885cc6dc7dadeab1d4acd3e4b798cedb Mon Sep 17 00:00:00 2001 From: Rub21 Date: Thu, 25 Apr 2024 20:13:58 -0500 Subject: [PATCH] Fix to get ENVIRONMENT --- osm-seed/templates/db/db-statefulset.yaml | 2 +- osm-seed/values.yaml | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/osm-seed/templates/db/db-statefulset.yaml b/osm-seed/templates/db/db-statefulset.yaml index 8e36db35..6c5afe0c 100644 --- a/osm-seed/templates/db/db-statefulset.yaml +++ b/osm-seed/templates/db/db-statefulset.yaml @@ -44,7 +44,7 @@ spec: - name: PGUSER value: {{ default "postgres" .Values.db.env.POSTGRES_USER | quote }} - name: ENVIRONMENT - value: {{ default "production" .Values.db.env.ENVIRONMENT | quote }} + value: {{ .Values.environment }} - name: PGDATA value: {{ .Values.db.persistenceDisk.mountPath }} - name: POD_IP diff --git a/osm-seed/values.yaml b/osm-seed/values.yaml index e970d8ce..ef6c0598 100644 --- a/osm-seed/values.yaml +++ b/osm-seed/values.yaml @@ -74,7 +74,6 @@ db: POSTGRES_DB: openstreetmap POSTGRES_USER: postgres POSTGRES_PASSWORD: 1234 - ENVIRONMENT: production persistenceDisk: enabled: false mountPath: /var/lib/postgresql/data