kustomize

package
v0.3.172 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2026 License: Apache-2.0 Imports: 27 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Kustomization

type Kustomization struct {
	// contains filtered or unexported fields
}

func ParseKustomization

func ParseKustomization(fsys fs.FS, kustomizationPath string, options KustomizationOptions) (*Kustomization, error)

func (*Kustomization) Path

func (k *Kustomization) Path() string

func (*Kustomization) Render

func (k *Kustomization) Render(context RenderContext, fsys kustfsys.FileSystem) error

type KustomizationConfiguration added in v0.3.154

type KustomizationConfiguration struct {
	// If defined, only files with the given suffix are considered as templates
	TemplateSuffix *string
	// If defined, the given left delimiter will be used to parse go templates; otherwise, defaults to '{{'
	LeftTemplateDelimiter *string
	// If defined, the given right delimiter will be used to parse go templates; otherwise, defaults to '}}'
	RightTemplateDelimiter *string
	// If defined, paths to referenced files or directories outside kustomizationPath
	IncludedFiles []string
	// If defined, paths to referenced kustomizations
	IncludedKustomizations []string
	// If defined, default values for the templates
	Values map[string]any
}

type KustomizationOptions

type KustomizationOptions struct {
	// If defined, only files with the given suffix are considered as templates
	TemplateSuffix *string
	// If defined, the given left delimiter will be used to parse go templates; otherwise, defaults to '{{'
	LeftTemplateDelimiter *string
	// If defined, the given right delimiter will be used to parse go templates; otherwise, defaults to '}}'
	RightTemplateDelimiter *string
	// If defined, used to decrypt files
	Decryptor manifests.Decryptor
	// If defined, used to provide additional template functions
	AdditionalTemplateFuncs template.FuncMap
}

type RenderContext

type RenderContext struct {
	LocalClient          client.Client
	LocalDiscoveryClient discovery.DiscoveryInterface
	Client               client.Client
	DiscoveryClient      discovery.DiscoveryInterface
	Component            component.Component
	ComponentDigest      string
	ComponentRevision    int64
	Namespace            string
	Name                 string
	Values               map[string]any
}

Jump to

Keyboard shortcuts

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