Skip to content

Commit

Permalink
fix: override render function
Browse files Browse the repository at this point in the history
  • Loading branch information
krtk6160 committed Oct 9, 2023
1 parent 8449baf commit 9b2abad
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions charts/galoy/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -283,3 +283,18 @@ Return Galoy environment variables for Geetest
name: {{ .Values.galoy.geetestExistingSecret.name }}
key: {{ .Values.galoy.geetestExistingSecret.secret_key }}
{{- end -}}

# TODO: Remove this once https://github.com/apollographql/router/issues/4002 is resolved
# This is copied from https://github.com/bitnami/charts/blob/main/bitnami/common/templates/_tplvalues.tpl
{{- define "common.tplvalues.render" -}}
{{- $value := typeIs "string" .value | ternary .value (.value | toYaml) }}
{{- if contains "{{" (toJson .value) }}
{{- if .scope }}
{{- tpl (cat "{{- with $.RelativeScope -}}" $value "{{- end }}") (merge (dict "RelativeScope" .scope) .context) }}
{{- else }}
{{- tpl $value .context }}
{{- end }}
{{- else }}
{{- $value }}
{{- end }}
{{- end -}}

0 comments on commit 9b2abad

Please sign in to comment.