Template functions are grouped into different contexts, depending on the phase of the application lifecycle when the function is available and the context data that is provided. Static, Config, and License contexts are available everywhere, while kURL context functions are not available on the config page.
Template functions in the static context can be used in any YAML, at any time. The static context also includes the Masterminds Sprig function library.
For a list of all Replicated functions available in the static context, click here.
Template functions in the config context are available when rendering an application that has a config screen. At execution time, template functions in this context also can use the static context functions.
For a list of all Replicated functions available in the config context, click here.
Template functions in the license context have access to license and version data.
For a list of all Replicated functions available in the license context, click here.
Template functions in the kURL context have access to kURL installation information.
For a list of all Replicated functions available in the kURL context, click here.
Template functions in the Identity context have access to KOTS Identity Service information.
For a list of all Replicated functions available in the Identity context, click here.