From c1b4808364a82a2c8155bc9c1c30d9df02864c2f Mon Sep 17 00:00:00 2001 From: Kjeld Schouten Date: Sun, 19 May 2024 15:19:03 +0200 Subject: [PATCH] Update common.yaml Signed-off-by: Kjeld Schouten --- charts/system/cloudnative-pg/templates/common.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/charts/system/cloudnative-pg/templates/common.yaml b/charts/system/cloudnative-pg/templates/common.yaml index 995efb03eb0..eadf5a1c2c5 100644 --- a/charts/system/cloudnative-pg/templates/common.yaml +++ b/charts/system/cloudnative-pg/templates/common.yaml @@ -1,5 +1,9 @@ {{/* Make sure all variables are set properly */}} {{- include "tc.v1.common.loader.init" . }} +{{- if or .Values.credentials .Values.credentialsList }} +{{- fail "Don't try to add credenatials to CloudNative-PG, add them to the individual charts using CloudNative-PG" }} +{{- end }} + {{/* Render the templates */}} {{ include "tc.v1.common.loader.apply" . }}