· ☕ 3 分钟
Helm uses Go templates for templating your resource files. While Go ships several built-in functions, we have added many others.
First, we added all of the functions in the Sprig library, except env and expandenv, for security reasons.
We also added two special template functions: include and required. The include function allows you to bring in another template, and then pass the results to other template functions.
Using the ‘include’ Function
For example, this template snippet includes a template called mytpl, then lowercases the result, then wraps that in double quotes.


