helm

package
v1.39.0 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2022 License: Apache-2.0 Imports: 56 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsHelmChart

func IsHelmChart(path string) bool

func NewDeployer

func NewDeployer(ctx context.Context, cfg Config, labeller *label.DefaultLabeller, h *latest.HelmDeploy) (deploy.Deployer, error)

NewDeployer returns a configured Deployer3 if version is less than 3.1 else returns Deployer31 with post-render functionality

Types

type Config added in v1.23.0

type Config interface {
	kubectl.Config
	kstatus.Config
	kloader.Config
	portforward.Config
	IsMultiConfig() bool
	JSONParseConfig() latest.JSONParseConfig
}

type Deployer3 added in v1.39.0

type Deployer3 struct {
	*latest.HelmDeploy
	// contains filtered or unexported fields
}

Deployer3 deploys workflows using the helm CLI 3.0.0

func NewBase added in v1.39.0

func NewBase(ctx context.Context, cfg Config, labeller *label.DefaultLabeller, h *latest.HelmDeploy, hv semver.Version) (*Deployer3, error)

NewBase returns a configured Deployer3.

func (*Deployer3) Cleanup added in v1.39.0

func (h *Deployer3) Cleanup(ctx context.Context, out io.Writer, dryRun bool) error

Cleanup deletes what was deployed by calling Deploy.

func (*Deployer3) Dependencies added in v1.39.0

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

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

func (*Deployer3) GetAccessor added in v1.39.0

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

func (*Deployer3) GetDebugger added in v1.39.0

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

func (*Deployer3) GetLogger added in v1.39.0

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

func (*Deployer3) GetStatusMonitor added in v1.39.0

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

func (*Deployer3) GetSyncer added in v1.39.0

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

func (*Deployer3) HasRunnableHooks added in v1.39.0

func (h *Deployer3) HasRunnableHooks() bool

func (*Deployer3) PostDeployHooks added in v1.39.0

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

func (*Deployer3) PreDeployHooks added in v1.39.0

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

func (*Deployer3) RegisterLocalImages added in v1.39.0

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

func (*Deployer3) Render added in v1.39.0

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

Render generates the Kubernetes manifests and writes them out

func (*Deployer3) TrackBuildArtifacts added in v1.39.0

func (h *Deployer3) TrackBuildArtifacts(artifacts []graph.Artifact)

type Deployer30 added in v1.39.0

type Deployer30 struct {
	*Deployer3
}

Deployer30 deploys workflows using the helm CLI less than 3.1

func NewDeployer30 added in v1.39.0

func NewDeployer30(ctx context.Context, cfg Config, labeller *label.DefaultLabeller, h *latest.HelmDeploy, hv semver.Version) (*Deployer30, error)

func (*Deployer30) Deploy added in v1.39.0

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

Deploy deploys the build results to the Kubernetes cluster

type Deployer31 added in v1.39.0

type Deployer31 struct {
	*Deployer3
}

Deployer31 deploys workflows using the helm CLI 3.1.0 or higher

func NewDeployer31 added in v1.39.0

func NewDeployer31(ctx context.Context, cfg Config, labeller *label.DefaultLabeller, h *latest.HelmDeploy, hv semver.Version) (*Deployer31, error)

func (*Deployer31) Deploy added in v1.39.0

func (h *Deployer31) Deploy(ctx context.Context, io io.Writer, graph []graph.Artifact) error

Deploy should ensure that the build results are deployed to the Kubernetes cluster.

Jump to

Keyboard shortcuts

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