don't apply secret when using existing (#992)

Signed-off-by: Jonathan Cole <jonathan@mothership.com>

Co-authored-by: André Bauer <monotek@users.noreply.github.com>
This commit is contained in:
Jonathan Cole
2021-05-21 20:08:37 +08:00
committed by GitHub
co-authored by André Bauer
parent 1935b57eb7
commit 256eee98c4
2 changed files with 2 additions and 2 deletions
@@ -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
@@ -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: