github.com/1aal/kubeblocks@v0.0.0-20231107070852-e1c03e598921/deploy/postgresql/templates/_tplvalues.tpl (about)

     1  {{/*
     2  Renders a value that contains template.
     3  Usage:
     4  {{ include "tplvalues.render" ( dict "value" .Values.path.to.the.Value "context" $) }}
     5  */}}
     6  {{- define "tplvalues.render" -}}
     7      {{- if typeIs "string" .value }}
     8          {{- tpl .value .context }}
     9      {{- else }}
    10          {{- tpl (.value | toYaml) .context }}
    11      {{- end }}
    12  {{- end -}}