From 0a088b1797c3c9299cfd4b076edf1ef9cd117b7a Mon Sep 17 00:00:00 2001
From: Philippe Scorsolini
Date: Mon, 30 Oct 2023 11:14:22 +0100
Subject: [PATCH] fix: actually create config secret if required
Signed-off-by: Philippe Scorsolini
---
charts/cloudnative-pg/templates/config.yaml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/charts/cloudnative-pg/templates/config.yaml b/charts/cloudnative-pg/templates/config.yaml
index 867d3611c..4dc065fca 100644
--- a/charts/cloudnative-pg/templates/config.yaml
+++ b/charts/cloudnative-pg/templates/config.yaml
@@ -27,7 +27,6 @@ metadata:
{{- end }}
data:
{{- toYaml .Values.config.data | nindent 2 }}
-{{- end }}
{{- else }}
apiVersion: v1
kind: Secret
@@ -43,3 +42,4 @@ metadata:
stringData:
{{- toYaml .Values.config.data | nindent 2 }}
{{- end }}
+{{- end }}