fix: fix path to values of admin credentials in helpers (#766)
Co-authored-by: Ilya Katlinsky <i.katlinsky@itransition.com>
diff --git a/charts/apisix/Chart.yaml b/charts/apisix/Chart.yaml
index 0d390e0..3ef282f 100644
--- a/charts/apisix/Chart.yaml
+++ b/charts/apisix/Chart.yaml
@@ -31,7 +31,7 @@
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
-version: 2.8.0
+version: 2.8.1
# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
diff --git a/charts/apisix/templates/_helpers.tpl b/charts/apisix/templates/_helpers.tpl
index 7dd454a..53a49bb 100644
--- a/charts/apisix/templates/_helpers.tpl
+++ b/charts/apisix/templates/_helpers.tpl
@@ -140,8 +140,8 @@
Key to use to fetch admin token from secret
*/}}
{{- define "apisix.admin.credentials.secretAdminKey" -}}
-{{- if .Values.admin.credentials.secretAdminKey }}
-{{- .Values.admin.credentials.secretAdminKey }}
+{{- if .Values.apisix.admin.credentials.secretAdminKey }}
+{{- .Values.apisix.admin.credentials.secretAdminKey }}
{{- else }}
{{- "admin" }}
{{- end }}
@@ -151,8 +151,8 @@
Key to use to fetch viewer token from secret
*/}}
{{- define "apisix.admin.credentials.secretViewerKey" -}}
-{{- if .Values.admin.credentials.secretViewerKey }}
-{{- .Values.admin.credentials.secretViewerKey }}
+{{- if .Values.apisix.admin.credentials.secretViewerKey }}
+{{- .Values.apisix.admin.credentials.secretViewerKey }}
{{- else }}
{{- "viewer" }}
{{- end }}