From 4e2b6565671188e95ce2f9382a821e1c04d9f819 Mon Sep 17 00:00:00 2001 From: Cole Arendt Date: Sat, 29 Jul 2023 06:06:31 -0400 Subject: [PATCH] make the required values mandatory in postgrest --- charts/postgrest/templates/secret.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/charts/postgrest/templates/secret.yaml b/charts/postgrest/templates/secret.yaml index 0cc2ef1..f0fddb8 100644 --- a/charts/postgrest/templates/secret.yaml +++ b/charts/postgrest/templates/secret.yaml @@ -5,9 +5,9 @@ metadata: namespace: {{ $.Release.Namespace }} stringData: db-uri.txt: |- - {{- .Values.postgrest.dbUri | nindent 4 }} + {{- required "Missing postgrest.dbUri" .Values.postgrest.dbUri | nindent 4 }} jwt-secret.txt: |- - {{- .Values.postgrest.jwtSecret | nindent 4 }} + {{- required "postgrest.jwtSecret" .Values.postgrest.jwtSecret | nindent 4 }} {{- if .Values.secret }} {{- toYaml .Values.secret | nindent 2 }} {{- end }}