Skip to content

Commit

Permalink
feat: improve helm lookup fallback in case of helm template rendering
Browse files Browse the repository at this point in the history
  • Loading branch information
khanhngobackend committed Dec 24, 2024
1 parent 94cd10c commit 47fca4e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ app: "{{ template "harbor.name" . }}"

{{/* Helper for printing values from existing secrets*/}}
{{- define "harbor.secretKeyHelper" -}}
{{- if and (not (empty .data)) (hasKey .data .key) }}
{{- index .data .key | b64dec -}}
{{- if and (not (empty (.data | default dict ))) (hasKey (.data | default dict ) .key) }}
{{- index (.data | default dict ) .key | b64dec -}}
{{- end -}}
{{- end -}}

Expand Down

0 comments on commit 47fca4e

Please sign in to comment.