From d565557ea9ebaa44c0d2e37920bc3130702157bf Mon Sep 17 00:00:00 2001 From: Lev Kokotov Date: Tue, 21 Apr 2026 12:18:52 -0700 Subject: [PATCH] fix: make log dedup settings optional --- Chart.yaml | 2 +- templates/config.yaml | 8 ++++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/Chart.yaml b/Chart.yaml index 7cf8714..9e024b4 100644 --- a/Chart.yaml +++ b/Chart.yaml @@ -1,4 +1,4 @@ apiVersion: v1 name: pgdog -version: v0.52 +version: v0.53 appVersion: "0.1.37" diff --git a/templates/config.yaml b/templates/config.yaml index 454b895..ec8613f 100644 --- a/templates/config.yaml +++ b/templates/config.yaml @@ -134,8 +134,12 @@ data: server_lifetime = {{ include "pgdog.intval" (.Values.serverLifetime | default 86400000) }} log_connections = {{ .Values.logConnections | default "true" }} log_disconnections = {{ .Values.logDisconnections | default "true" }} - log_dedup_threshold = {{ include "pgdog.intval" (.Values.logDedupThreshold | default 0) }} - log_dedup_window = {{ include "pgdog.intval" (.Values.logDedupWindow | default 0) }} + {{- if .Values.logDedupThreshold }} + log_dedup_threshold = {{ include "pgdog.intval" .Values.logDedupThreshold }} + {{- end }} + {{- if .Values.logDedupWindow }} + log_dedup_window = {{ include "pgdog.intval" .Values.logDedupWindow }} + {{- end }} {{- if .Values.statsPeriod }} stats_period = {{ include "pgdog.intval" .Values.statsPeriod }} {{- end }}