kustomize

package
v0.3.169 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2026 License: Apache-2.0 Imports: 27 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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