kustomize

package
v1.15.0 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2020 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DefaultKustomizePath = "."
)

Functions

func BuildCommandArgs

func BuildCommandArgs(buildArgs []string, kustomizePath string) []string

BuildCommandArgs returns a list of build args to be passed to kustomize.

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.

func IsKustomizationBase

func IsKustomizationBase(path string) bool

func IsKustomizationPath

func IsKustomizationPath(path string) bool

Types

type Deployer

type Deployer struct {
	*latest.KustomizeDeploy
	// contains filtered or unexported fields
}

Deployer deploys workflows using kustomize CLI.

func NewDeployer

func NewDeployer(cfg kubectl.Config, labels map[string]string) (*Deployer, error)

func (*Deployer) Cleanup

func (k *Deployer) Cleanup(ctx context.Context, out io.Writer) error

Cleanup deletes what was deployed by calling Deploy.

func (*Deployer) Dependencies

func (k *Deployer) Dependencies() ([]string, error)

Dependencies lists all the files that describe what needs to be deployed.

func (*Deployer) Deploy

func (k *Deployer) Deploy(ctx context.Context, out io.Writer, builds []build.Artifact) ([]string, error)

Deploy runs `kubectl apply` on the manifest generated by kustomize.

func (*Deployer) Render

func (k *Deployer) Render(ctx context.Context, out io.Writer, builds []build.Artifact, offline bool, filepath string) error

Jump to

Keyboard shortcuts

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