kustomize

package
v0.31.0 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NativeFunc

func NativeFunc(k Kustomize) *jsonnet.NativeFunction

NativeFunc returns a jsonnet native function that provides the same functionality as `Kustomize.Build` of this package. Kustomize yamls are required to be present on the local filesystem, at a relative location to the file that calls `kustomize.build()` / `std.native('kustomizeBuild')`. This guarantees hermeticity

Types

type ExecKustomize

type ExecKustomize struct{}

ExecKustomize is a Kustomize implementation powered by the `kustomize` command line utility

func (ExecKustomize) Build

func (k ExecKustomize) Build(path string) (manifest.List, error)

Build expands a Kustomize into a regular manifest.List using the `kustomize build` command

type JsonnetOpts

type JsonnetOpts struct {
	// CalledFrom is the file that calls kustomizeBuild. This is used to find the
	// vendored Kustomize relative to this file
	CalledFrom string `json:"calledFrom"`
	// NameBuild is used to create the keys in the resulting map
	NameFormat string `json:"nameFormat"`
}

JsonnetOpts are additional properties the consumer of the native func might pass.

type Kustomize

type Kustomize interface {
	// Build returns the individual resources of a Kustomize
	Build(path string) (manifest.List, error)
}

Kustomize provides high level access to some Kustomize operations

Jump to

Keyboard shortcuts

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