From bcde36e12550bb91c44e2fafabdcb8b65fa00164 Mon Sep 17 00:00:00 2001 From: Sven Ketelsen Date: Fri, 3 Jun 2022 14:18:26 +0200 Subject: [PATCH] feat: secrets --- smardigo/templates/connect/secret.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/smardigo/templates/connect/secret.yml b/smardigo/templates/connect/secret.yml index a49ae2d..758b5a6 100644 --- a/smardigo/templates/connect/secret.yml +++ b/smardigo/templates/connect/secret.yml @@ -13,7 +13,7 @@ data: {{- $old_sec := lookup "v1" "Secret" .Release.Namespace $secret_name }} # check, if a secret is already set - {{- if or (not $old_sec) (not $old_sec.data) (not index $old_sec.data "JWT_SECRET") }} + {{- if or (or (not $old_sec) (not $old_sec.data)) (not index $old_sec.data "JWT_SECRET") }} # if not set, then generate a new password JWT_SECRET: {{ randAlphaNum 32 | b64enc }} {{ else }}