We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 77d4379 commit 73fd1faCopy full SHA for 73fd1fa
charts/sophora-ugc/templates/_helpers.tpl
@@ -94,3 +94,16 @@ app.kubernetes.io/version: {{ .Chart.AppVersion | quote }}
94
{{- end }}
95
app.kubernetes.io/managed-by: {{ .Release.Service }}
96
97
+
98
+{{/*
99
+Renders a value that contains template.
100
+Usage:
101
+{{ include "common.tplvalues.render" ( dict "value" .Values.path.to.the.Value "context" $) }}
102
+*/}}
103
+{{- define "common.tplvalues.render" -}}
104
+ {{- if typeIs "string" .value }}
105
+ {{- tpl .value .context }}
106
+ {{- else }}
107
+ {{- tpl (.value | toYaml) .context }}
108
+ {{- end }}
109
+{{- end -}}
0 commit comments