template

package
v0.25.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 16, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package template provides template processing functionality.

Index

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL