helm

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: 47 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
	kloader.Config
	portforward.Config
	GetNamespace() string
	IsMultiConfig() bool
	JSONParseConfig() latest.JSONParseConfig
}

type Deployer

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

Deployer deploys workflows using the helm CLI

func NewDeployer

func NewDeployer(ctx context.Context, cfg Config, labeller *label.DefaultLabeller, h *latest.LegacyHelmDeploy, artifacts []*latest.Artifact, configName string, customResourceSelectors []manifest.GroupKindSelector) (*Deployer, error)

NewDeployer returns a configured Deployer. Returns an error if current version of helm is less than 3.1.0.

func (*Deployer) Cleanup

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

Cleanup deletes what was deployed by calling Deploy.

func (Deployer) ConfigFile

func (h Deployer) ConfigFile() string

func (*Deployer) ConfigName

func (h *Deployer) ConfigName() string

func (*Deployer) Dependencies

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

Dependencies returns a list of files that the deployer depends on.

func (*Deployer) Deploy

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

Deploy deploys the build results to the Kubernetes cluster

func (Deployer) EnableDebug

func (h Deployer) EnableDebug() bool

func (*Deployer) GetAccessor

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

func (*Deployer) GetDebugger

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

func (*Deployer) GetLogger

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

func (*Deployer) GetStatusMonitor

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

func (*Deployer) GetSyncer

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

func (Deployer) GlobalFlags

func (h Deployer) GlobalFlags() []string

func (*Deployer) HasRunnableHooks

func (h *Deployer) HasRunnableHooks() bool

func (Deployer) KubeConfig

func (h Deployer) KubeConfig() string

func (Deployer) KubeContext

func (h Deployer) KubeContext() string

func (Deployer) Labels

func (h Deployer) Labels() map[string]string

func (Deployer) ManifestOverrides added in v2.6.0

func (h Deployer) ManifestOverrides() map[string]string

func (Deployer) OverrideProtocols

func (h Deployer) OverrideProtocols() []string

func (*Deployer) PostDeployHooks

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

func (*Deployer) PreDeployHooks

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

func (*Deployer) RegisterLocalImages

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

func (*Deployer) TrackBuildArtifacts

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

Jump to

Keyboard shortcuts

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