Skip to content

Commit

Permalink
fix: fix path to values of admin credentials in helpers (#766)
Browse files Browse the repository at this point in the history
Co-authored-by: Ilya Katlinsky <i.katlinsky@itransition.com>
  • Loading branch information
ikatlinsky and ikatlinski authored Jun 30, 2024
1 parent d5a7358 commit 0c84f99
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion charts/apisix/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ type: application
# 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
Expand Down
8 changes: 4 additions & 4 deletions charts/apisix/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -140,8 +140,8 @@ Return the password key name of etcd secret
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 }}
Expand All @@ -151,8 +151,8 @@ Key to use to fetch admin token from secret
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 }}
Expand Down

0 comments on commit 0c84f99

Please sign in to comment.