From 17653725c401fa02b43c4b9718977fc658bc73bc Mon Sep 17 00:00:00 2001 From: Riadh Meghenem Date: Thu, 17 Oct 2024 13:59:26 +0200 Subject: [PATCH] feat(intialAdminHashPassword): support (#15) --- templates/deployment.yml | 7 +++++++ values.yaml | 9 +++++++++ 2 files changed, 16 insertions(+) diff --git a/templates/deployment.yml b/templates/deployment.yml index f8df693..053a9d6 100644 --- a/templates/deployment.yml +++ b/templates/deployment.yml @@ -142,6 +142,13 @@ spec: secretKeyRef: name: {{ required "You must specify a license secret" .Values.license.secretName }} key: {{ required "You must specify a license secret" .Values.license.secretKey }} + {{- if .Values.initialAdminHashPassword.enabled }} + - name: HRZ_ADMIN_PWD_HASH + valueFrom: + secretKeyRef: + name: {{ .Values.initialAdminHashPassword.secretName }} + key: {{ .Values.initialAdminHashPassword.secretKey }} + {{- end }} - name: LOGGING_APPENDER value: {{ .Values.logFormat }} {{- if .Values.logback.pattern }} diff --git a/values.yaml b/values.yaml index 3bd4ea4..3d8d256 100644 --- a/values.yaml +++ b/values.yaml @@ -455,6 +455,15 @@ license: secretName: "" secretKey: "" +## Set up initial admin user. +## @param initialAdminHashPassword.enabled Whether to enable the initial admin user +## @param initialAdminHashPassword.secretName Existing secret name where the initial admin password is stored +## @param initialAdminHashPassword.secretKey Existing secret key where the initial admin password is stored +initialAdminHashPassword: + enabled: false + secretName: "" + secretKey: "" + ## For backwards-compatibility reasons, this array should contain ## only one element. ## For more information, refer to the Horizon installation guide.