kustomizer

package
v0.0.0-...-2cf57f6 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2020 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// OriginalDir is the path to the original yaml folder
	OriginalDir = "./templates"
)

Functions

This section is empty.

Types

type Patch

type Patch struct {
	Op    PatchOp     `json:"op" yaml:"op"`
	Path  string      `json:"path" yaml:"path"`
	Value interface{} `json:"value" yaml:"value"`
}

type PatchOp

type PatchOp string
const (
	OpAdd     PatchOp = "add"
	OpReplace PatchOp = "replace"
	OpRemove  PatchOp = "remove"
)

type Patches

type Patches []Patch

type Workspace

type Workspace struct {
	Dir string
}

func NewWorkspace

func NewWorkspace() (*Workspace, error)

func (*Workspace) Build

func (w *Workspace) Build(ctx context.Context) (string, error)

func (*Workspace) Close

func (w *Workspace) Close() error

func (*Workspace) Command

func (w *Workspace) Command(ctx context.Context, command string, args ...string) *exec.Cmd

func (*Workspace) CommandWithInput

func (w *Workspace) CommandWithInput(ctx context.Context, input io.Reader, command string, args ...string) *exec.Cmd

func (*Workspace) Kustomize

func (w *Workspace) Kustomize(ctx context.Context, args ...string) *exec.Cmd

func (*Workspace) KustomizeWithInput

func (w *Workspace) KustomizeWithInput(ctx context.Context, input io.Reader, args ...string) *exec.Cmd

func (*Workspace) LoadConfig

func (w *Workspace) LoadConfig() (*ktypes.Kustomization, error)

func (*Workspace) SaveConfig

func (w *Workspace) SaveConfig(y *ktypes.Kustomization) error

Jump to

Keyboard shortcuts

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