From 256eee98c4ede2de51e07a5ee97f87f39ba9c93e Mon Sep 17 00:00:00 2001 From: Jonathan Cole <58993913+jonathan-mothership@users.noreply.github.com> Date: Fri, 21 May 2021 05:08:37 -0700 Subject: [PATCH] don't apply secret when using existing (#992) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Jonathan Cole Co-authored-by: André Bauer --- charts/prometheus-postgres-exporter/Chart.yaml | 2 +- charts/prometheus-postgres-exporter/templates/secrets.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/charts/prometheus-postgres-exporter/Chart.yaml b/charts/prometheus-postgres-exporter/Chart.yaml index 013dcb32..aeedd330 100644 --- a/charts/prometheus-postgres-exporter/Chart.yaml +++ b/charts/prometheus-postgres-exporter/Chart.yaml @@ -2,7 +2,7 @@ apiVersion: v2 appVersion: "0.9.0" description: A Helm chart for prometheus postgres-exporter name: prometheus-postgres-exporter -version: 2.3.2 +version: 2.3.3 home: https://github.com/prometheus-community/postgres_exporter sources: - https://github.com/prometheus-community/postgres_exporter diff --git a/charts/prometheus-postgres-exporter/templates/secrets.yaml b/charts/prometheus-postgres-exporter/templates/secrets.yaml index f2e10775..bd63eb92 100644 --- a/charts/prometheus-postgres-exporter/templates/secrets.yaml +++ b/charts/prometheus-postgres-exporter/templates/secrets.yaml @@ -1,4 +1,4 @@ -{{- if not .Values.config.datasource.passwordSecret -}} +{{- if not (or .Values.config.datasource.passwordSecret .Values.config.datasourceSecret) -}} apiVersion: v1 kind: Secret metadata: