kustomize

package
v1.39.18 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2023 License: Apache-2.0 Imports: 38 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DefaultKustomizePath = "."
	KustomizeFilePaths   = []string{"kustomization.yaml", "kustomization.yml", "Kustomization"}

	KustomizeBinaryCheck = kustomizeBinaryExists // For testing
)

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, labeller *label.DefaultLabeller, d *latest.KustomizeDeploy) (*Deployer, error)

func (*Deployer) Cleanup

func (k *Deployer) Cleanup(ctx context.Context, out io.Writer, dryRun bool) 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 []graph.Artifact) error

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

func (*Deployer) GetAccessor added in v1.27.0

func (k *Deployer) GetAccessor() access.Accessor

func (*Deployer) GetDebugger added in v1.27.0

func (k *Deployer) GetDebugger() debug.Debugger

func (*Deployer) GetLogger added in v1.27.0

func (k *Deployer) GetLogger() log.Logger

func (*Deployer) GetStatusMonitor added in v1.27.0

func (k *Deployer) GetStatusMonitor() status.Monitor

func (*Deployer) GetSyncer added in v1.27.0

func (k *Deployer) GetSyncer() sync.Syncer

func (*Deployer) HasRunnableHooks added in v1.32.0

func (k *Deployer) HasRunnableHooks() bool

func (*Deployer) PostDeployHooks added in v1.31.0

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

func (*Deployer) PreDeployHooks added in v1.31.0

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

func (*Deployer) RegisterLocalImages added in v1.28.0

func (k *Deployer) RegisterLocalImages(images []graph.Artifact)

func (*Deployer) Render

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

func (*Deployer) TrackBuildArtifacts added in v1.27.0

func (k *Deployer) TrackBuildArtifacts(artifacts []graph.Artifact)

Jump to

Keyboard shortcuts

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