kustomize

package
v2.11.1 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2024 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var NewTmpFS = newTmpFS

Functions

func DependenciesForKustomization

func DependenciesForKustomization(dir string) ([]string, error)

DependenciesForKustomization finds common kustomize artifacts relative to the provided working dir, and collects them into a list of files to be passed to the file watcher.

func FindKustomizationConfig

func FindKustomizationConfig(dir string) (string, error)

FindKustomizationConfig finds the kustomization config relative to the provided dir. A Kustomization config must be at the root of the directory. Kustomize will error if more than one of these files exists so order doesn't matter.

Types

type Kustomize

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

func New

func New(cfg render.Config, rCfg latest.RenderConfig, labels map[string]string, configName string, ns string, manifestOverrides map[string]string, injectNs bool) (Kustomize, error)

func (Kustomize) ManifestDeps

func (k Kustomize) ManifestDeps() ([]string, error)

func (Kustomize) Render

func (k Kustomize) Render(ctx context.Context, out io.Writer, builds []graph.Artifact, offline bool) (manifest.ManifestListByConfig, error)

type TmpFS

type TmpFS interface {
	WriteTo(path string, content []byte) error
	Cleanup()
	GetPath(path string) (string, error)
}

type TmpFSReal

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

func (TmpFSReal) Cleanup

func (f TmpFSReal) Cleanup()

func (TmpFSReal) GetPath

func (f TmpFSReal) GetPath(path string) (string, error)

func (TmpFSReal) WriteTo

func (f TmpFSReal) WriteTo(path string, content []byte) error

Jump to

Keyboard shortcuts

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