This is an automated email from the ASF dual-hosted git repository.

lingsamuel pushed a commit to branch dev
in repository https://gitbox.apache.org/repos/asf/apisix-helm-chart.git


The following commit(s) were added to refs/heads/dev by this push:
     new b39fa91  fix: configmap admin/viewer secret key format (#611)
b39fa91 is described below

commit b39fa91b1d5c0b26526e646a6c2b0963427834b9
Author: Sarasa Kisaragi <[email protected]>
AuthorDate: Mon Sep 11 11:16:50 2023 +0800

    fix: configmap admin/viewer secret key format (#611)
    
    Signed-off-by: Ling Samuel (WSL) <[email protected]>
---
 charts/apisix/templates/configmap.yaml | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/charts/apisix/templates/configmap.yaml 
b/charts/apisix/templates/configmap.yaml
index 03711dd..b2f365e 100644
--- a/charts/apisix/templates/configmap.yaml
+++ b/charts/apisix/templates/configmap.yaml
@@ -324,7 +324,7 @@ data:
           # admin: can everything for configuration data
           - name: "admin"
             {{- if .Values.apisix.admin.credentials.secretName }}
-            key: "{{"{{"}}APISIX_ADMIN_KEY{{"}}"}}"
+            key: ${{"{{"}}APISIX_ADMIN_KEY{{"}}"}}
             {{- else }}
             key: {{ .Values.apisix.admin.credentials.admin }}
             {{- end }}
@@ -332,7 +332,7 @@ data:
           # viewer: only can view configuration data
           - name: "viewer"
             {{- if .Values.apisix.admin.credentials.secretName }}
-            key: "{{"{{"}}APISIX_VIEWER_KEY{{"}}"}}"
+            key: ${{"{{"}}APISIX_VIEWER_KEY{{"}}"}}
             {{- else }}
             key: {{ .Values.apisix.admin.credentials.viewer }}
             {{- end }}

Reply via email to