kustomization

package
v0.41.2 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2023 License: Apache-2.0 Imports: 13 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Build added in v0.18.0

func Build(base string) ([]byte, error)

Build takes the path to a directory with a konfig.RecognizedKustomizationFileNames, builds it, and returns the resulting manifests as multi-doc YAML. It restricts the Kustomize file system to the parent directory of the base.

func BuildWithRoot added in v0.31.0

func BuildWithRoot(root, base string) ([]byte, error)

BuildWithRoot takes the path to a directory with a konfig.RecognizedKustomizationFileNames, builds it, and returns the resulting manifests as multi-doc YAML. The Kustomize file system is restricted to root.

func Generate

func Generate(options Options) (*manifestgen.Manifest, error)

Generate scans the given directory for Kubernetes manifests and creates a konfig.DefaultKustomizationFileName file, including all discovered manifests as resources.

Types

type Options

type Options struct {
	FileSystem filesys.FileSystem
	BaseDir    string
	TargetPath string
}

func MakeDefaultOptions

func MakeDefaultOptions() Options

Jump to

Keyboard shortcuts

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