From 8c77e38ac9f7be3b90b9453248b81b71b554e84c Mon Sep 17 00:00:00 2001 From: c9s Date: Thu, 17 Dec 2020 18:08:09 +0800 Subject: [PATCH] use the secret name as the same as release name --- charts/bbgo/templates/deployment.yaml | 2 +- charts/bbgo/values.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/charts/bbgo/templates/deployment.yaml b/charts/bbgo/templates/deployment.yaml index 036e64a80..3d29ae7e6 100644 --- a/charts/bbgo/templates/deployment.yaml +++ b/charts/bbgo/templates/deployment.yaml @@ -55,7 +55,7 @@ spec: # the "env" entries will override the environment variables from envFrom. envFrom: - secretRef: - name: {{ .Values.dotenv.secret }} + name: {{ .Values.dotenv.secret | default .Release.Name }} {{- end }} volumes: diff --git a/charts/bbgo/values.yaml b/charts/bbgo/values.yaml index e96897c3c..7336f05f0 100644 --- a/charts/bbgo/values.yaml +++ b/charts/bbgo/values.yaml @@ -18,7 +18,7 @@ configmap: file: "config/bbgo.yaml" dotenv: - secret: "bbgo" + secret: null serviceAccount: # Specifies whether a service account should be created