From 78f702bbebc64e01986616645213a9fe55a2baad Mon Sep 17 00:00:00 2001 From: hackerman <3372410+aeneasr@users.noreply.github.com> Date: Tue, 5 Nov 2019 18:47:10 +0100 Subject: [PATCH] helm/hive: Do not use hooks for secret (#84) --- helm/charts/hive/templates/secrets.yaml | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/helm/charts/hive/templates/secrets.yaml b/helm/charts/hive/templates/secrets.yaml index c88bd7ebc1..5b6ccdec47 100644 --- a/helm/charts/hive/templates/secrets.yaml +++ b/helm/charts/hive/templates/secrets.yaml @@ -5,12 +5,8 @@ metadata: namespace: {{ .Release.Namespace }} labels: {{ include "hive.labels" . | indent 4 }} - annotations: - # Create the secret before installation, and only then. This saves the secret from regenerating during an upgrade - "helm.sh/hook": "pre-install" - "helm.sh/hook-delete-policy": "before-hook-creation" type: Opaque data: dsn: {{ .Values.hive.config.dsn | b64enc | quote }} # Generate a random secret if the user doesn't give one. User given password has priority - secretsSession: {{ ( include "hive.secrets.session" . | default ( randAlphaNum 32 )) | required "Value secrets.session can not be empty!" | b64enc | quote }} + secretsSession: {{ ( include "hive.secrets.session" . | required "Value hive.config.secrets.session can not be empty!" | b64enc | quote }}