kustomize

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2020 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Overview

Package kustomize is a wrapper to call Kustomize directly from Go.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Kustomize

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

Kustomize holds factories and config options.

func NewDefaultKustomize

func NewDefaultKustomize() *Kustomize

NewDefaultKustomize creates a Kustomize instance with a sane default config.

func (*Kustomize) For

For returns a new KustomizeContext using the given FileSystem.

func (*Kustomize) ForHTTP

func (k *Kustomize) ForHTTP(httpFS http.FileSystem) KustomizeContext

ForHTTP returns a new KustomizeContext using the given http.FileSystem.

type KustomizeContext

type KustomizeContext interface {
	ReadFile(path string) ([]byte, error)
	WriteFile(path string, content []byte) error
	MkLayer(name string, kustomization types.Kustomization) error
	Build(path string) ([]unstructured.Unstructured, error)
}

KustomizeContext combines a Kustomize instance with FileSystem operations.

Jump to

Keyboard shortcuts

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