From 4990988fc7654dc5418ed05507551cfd862627f3 Mon Sep 17 00:00:00 2001 From: barrfalk Date: Thu, 11 Jul 2024 16:45:48 -0700 Subject: [PATCH] Update secret.yaml --- charts/app/templates/secret.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/charts/app/templates/secret.yaml b/charts/app/templates/secret.yaml index 8a3d5b6f7..40f81b347 100644 --- a/charts/app/templates/secret.yaml +++ b/charts/app/templates/secret.yaml @@ -2,7 +2,7 @@ {{- $databaseUser := .Values.global.secrets.databaseUser| default "postgres" }} {{- $databasePassword := .Values.global.secrets.databasePassword | default (randAlphaNum 10) }} {{- $caseManagementApiKey := .Values.global.secrets.caseManagementApiKey | default (randAlphaNum 10) }} -{{- $secretObj := (lookup "v1" "Secret" .Release.Namespace .Release.Name ) | default dict }} +{{- $secretObj := (lookup "v1" "Secret" .Release.Namespace "nr-compliance-enforcement" ) | default dict }} {{- $secretData := (get $secretObj "data") | default dict }} # set below to existing secret data or generate a random one when not exists {{- $databasePassword = (get $secretData "databasePassword") | default ($databasePassword | b64enc) }}