kpt

package
v1.28.0 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2021 License: Apache-2.0 Imports: 37 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config added in v1.26.0

type Deployer

type Deployer struct {
	*latestV1.KptDeploy
	// contains filtered or unexported fields
}

Deployer deploys workflows with kpt CLI

func NewDeployer

func NewDeployer(cfg Config, labeller *label.DefaultLabeller, d *latestV1.KptDeploy) *Deployer

NewDeployer generates a new Deployer object contains the kptDeploy schema.

func (*Deployer) Cleanup

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

Cleanup deletes what was deployed by calling `kpt live destroy`.

func (*Deployer) Dependencies

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

Dependencies returns a list of files that the deployer depends on. This does NOT include applyDir. In dev mode, a redeploy will be triggered if one of these files is updated.

func (*Deployer) Deploy

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

Deploy hydrates the manifests using kustomizations and kpt functions as described in the render method, outputs them to the applyDir, and runs `kpt live apply` against applyDir to create resources in the cluster. `kpt live apply` supports automated pruning declaratively via resources in the applyDir.

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) 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, _ bool, filepath string) error

Render hydrates manifests using both kustomization and kpt functions.

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