kpt

package
v2.11.1 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2024 License: Apache-2.0 Imports: 33 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config interface {
	kubectl.Config
	kstatus.Config
}

type Deployer

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

Deployer deploys workflows with kpt CLI

func NewDeployer

func NewDeployer(cfg Config, labeller *label.DefaultLabeller, d *latest.KptDeploy, opts config.SkaffoldOptions, configName string, customResourceSelectors []manifest.GroupKindSelector) (*Deployer, error)

NewDeployer generates a new Deployer object contains the kptDeploy schema.

func (*Deployer) Cleanup

func (k *Deployer) Cleanup(ctx context.Context, out io.Writer, dryRun bool, _ manifest.ManifestListByConfig) error

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

func (*Deployer) ConfigName

func (k *Deployer) ConfigName() string

func (*Deployer) Dependencies

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

Dependencies is the v1 function required by "deployer" interface. It shall be no-op for v2 deployers.

func (*Deployer) Deploy

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

func (*Deployer) GetAccessor

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

func (*Deployer) GetDebugger

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

func (*Deployer) GetLogger

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

func (*Deployer) GetStatusMonitor

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

func (*Deployer) GetSyncer

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

func (*Deployer) RegisterLocalImages

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

func (*Deployer) Render

TODO(yuwenma)07/23/22: remove Render func from all deployers and deployerMux.

func (*Deployer) TrackBuildArtifacts

func (k *Deployer) TrackBuildArtifacts(builds, deployedImages []graph.Artifact)

TrackBuildArtifacts registers build artifacts to be tracked by a Deployer

Jump to

Keyboard shortcuts

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