Documentation ¶ Overview ¶ Package template provides template processing functionality. Index ¶ func LoadAndExpand(fileName string, env Env) (io.Reader, error) type Env func (e Env) Clone() (Env, error) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func LoadAndExpand ¶ func LoadAndExpand(fileName string, env Env) (io.Reader, error) LoadAndExpand loads a template file and expands it with the provided environment variables. Types ¶ type Env ¶ type Env struct { // Name of the namespace for the test. Namespace string // Any variables defined when invoking `kuttl test` // with --template-var name=value Vars map[string]any } Env represents the data structure available to test file templates. func (Env) Clone ¶ func (e Env) Clone() (Env, error) Clone creates a deep copy of the template environment. Source Files ¶ View all Source files env.go Click to show internal directories. Click to hide internal directories.