Files
CmiiDeploy/6-厦门移动-4.1.0/2-helm-chart/charts/common/templates/_tplvalues.tpl
zeaslity 437acbeb63 add
2024-10-30 16:30:51 +08:00

14 lines
404 B
Smarty

{{/* vim: set filetype=mustache: */}}
{{/*
Renders a value that contains template.
Usage:
{{ include "common.tplvalues.render" ( dict "value" .Values.path.to.the.Value "context" $) }}
*/}}
{{- define "common.tplvalues.render" -}}
{{- if typeIs "string" .value }}
{{- tpl .value .context }}
{{- else }}
{{- tpl (.value | toYaml) .context }}
{{- end }}
{{- end -}}