Documentation ¶
Overview ¶
Package template provides functions for templating yaml files.
Package template provides functions for templating yaml files.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ProcessYamlFilesInPath ¶
func ProcessYamlFilesInPath(path string, component types.ZarfComponent, values Values) ([]string, error)
ProcessYamlFilesInPath iterates over all yaml files in a given path and performs Zarf templating + image swapping.
Types ¶
type Values ¶
type Values struct {
// contains filtered or unexported fields
}
Values contains the values to be used in the template.
func Generate ¶
func Generate(cfg *types.PackagerConfig) (Values, error)
Generate returns a Values struct with the values to be used in the template.
func (Values) GetRegistry ¶
GetRegistry returns the registry address.
func (Values) GetVariables ¶ added in v0.24.0
func (values Values) GetVariables(component types.ZarfComponent) (map[string]*utils.TextTemplate, map[string]string)
GetVariables returns the variables to be used in the template.
Click to show internal directories.
Click to hide internal directories.