From dc2b651f91f17206b1e2649e3fb59b7d14c95b65 Mon Sep 17 00:00:00 2001 From: Rub21 Date: Tue, 14 May 2024 21:49:30 -0500 Subject: [PATCH] Add env var for LOG_STATEMENT --- osm-seed/templates/db/db-statefulset.yaml | 2 ++ osm-seed/values.yaml | 2 ++ 2 files changed, 4 insertions(+) diff --git a/osm-seed/templates/db/db-statefulset.yaml b/osm-seed/templates/db/db-statefulset.yaml index 6c5afe0c..5320f969 100644 --- a/osm-seed/templates/db/db-statefulset.yaml +++ b/osm-seed/templates/db/db-statefulset.yaml @@ -49,6 +49,8 @@ spec: value: {{ .Values.db.persistenceDisk.mountPath }} - name: POD_IP valueFrom: { fieldRef: { fieldPath: status.podIP } } + - name: LOG_STATEMENT + value: {{ default "none" .Values.db.env.LOG_STATEMENT | quote }} livenessProbe: exec: command: diff --git a/osm-seed/values.yaml b/osm-seed/values.yaml index afd37fa8..aba0c623 100644 --- a/osm-seed/values.yaml +++ b/osm-seed/values.yaml @@ -74,6 +74,8 @@ db: POSTGRES_DB: openstreetmap POSTGRES_USER: postgres POSTGRES_PASSWORD: 1234 + LOG_STATEMENT: "all" + # LOG_STATEMENT=all, ddl, mod persistenceDisk: enabled: false mountPath: /var/lib/postgresql/data