kpt

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

This section is empty.

Functions

This section is empty.

Types

type Deployer

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

Deployer deploys workflows with kpt CLI

func NewDeployer

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

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 []build.Artifact) ([]string, 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) Render

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

Render hydrates manifests using both kustomization and kpt functions.

Jump to

Keyboard shortcuts

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