From 01aec23ee2362dfaf1beaa4f8469411af4cb5060 Mon Sep 17 00:00:00 2001 From: Gabriel Santos Date: Sun, 18 Feb 2024 22:53:19 +0000 Subject: [PATCH] Fix typos in 'if' conditions and move set of encryption_key to its on block --- charts/perses/templates/config.yaml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/charts/perses/templates/config.yaml b/charts/perses/templates/config.yaml index f013365..12bf974 100644 --- a/charts/perses/templates/config.yaml +++ b/charts/perses/templates/config.yaml @@ -12,9 +12,10 @@ data: config.yaml: |- security: readonly: {{ .Values.config.security.readOnly }} - {{- if and .Values.config.security.encryptionKeyFile .Values.config.security.encriptionKey }} + {{- if and .Values.config.security.encryptionKeyFile .Values.config.security.encryptionKey }} encryption_key_file: {{ printf "%s/key" (.Values.config.security.encryptionKeyFile | trimSuffix "/") }} - {{- else }} + {{- end }} + {{- if and (not .Values.config.security.encryptionKeyFile) .Values.config.security.encryptionKey }} encryption_key: {{ .Values.config.security.encryptionKey }} {{- end }} enable_auth: {{ .Values.config.security.enableAuth }}