{{- template "GitRepo" . }}
Only works if I write the template define code inside 'templateDefinition.yml' as below and not in a separate file:
{{- define "GitRepo" }}
...
{{- end }}
Is there another way to organize the 'define' templates outside of 'templateDefinition.yml'?
Or any other inheritance mechanism?
I have tried to use "named templates" with "include" but it seems that it is not supported.
This understanding is correct, Pipelines supports sprig
based templates at the moment. Whereas support for Helm functions are soon to be released which will allow maintaining templates in _helpers.tpl
file as per Helm standards.