Skip to content

Commit

Permalink
fix: fix path to values of admin credentials in helpers
Browse files Browse the repository at this point in the history
  • Loading branch information
ikatlinski committed Jun 27, 2024
1 parent d5a7358 commit 803f79a
Showing 1 changed file with 4 additions and 4 deletions.
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 803f79a

Please sign in to comment.