You should use Nested template definitions. In your particular case it is: {{- define "host" -}} {{ template "name" . }}.example.com {{- end -}}.
DOWNLOAD: https://tinurli.com/2f9cqp
DOWNLOAD: https://tinurli.com/2f9cqp
helm-tpl-function-example
939c2ea5af
コメント