From 74cf2e7de5e11a78767e3b6d26fb838ea4e3fd46 Mon Sep 17 00:00:00 2001 From: Aditya Thebe Date: Mon, 22 Apr 2024 18:35:01 +0545 Subject: [PATCH] fix: admin password --- chart/templates/secrets.yaml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/chart/templates/secrets.yaml b/chart/templates/secrets.yaml index 792761bc..8d40c6d4 100644 --- a/chart/templates/secrets.yaml +++ b/chart/templates/secrets.yaml @@ -30,13 +30,10 @@ {{- $kratosDSN := (print "postgres://" $user ":" $password "@" $host "/" $database) -}} ## Admin Password -{{- $adminPasswordSecretInj := ( lookup "v1" "Secret" .Release.Namespace "mission-control-password" ) | default dict}} -{{- $adminpasswordSecretInjData := ( get $adminPasswordSecretInj "data" ) | default dict }} - {{- $adminPasswordSecret := ( lookup "v1" "Secret" .Release.Namespace .Values.adminPassword.secretKeyRef.name ) | default dict}} {{- $adminpasswordSecretData := ( get $adminPasswordSecret "data" ) | default dict }} -{{- $adminPassword := (( get $adminpasswordSecretInjData "password") | b64dec ) | default (( get $adminpasswordSecretData "password") | b64dec ) | default ( randAlphaNum 12 ) }} +{{- $adminPassword := (( get $adminpasswordSecretData "password") | b64dec ) | default ( randAlphaNum 12 ) }} ### {{- if .Values.db.create }}