runner

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2020 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Runner

type Runner struct {
	// contains filtered or unexported fields
}

Runner represents a Helm action runner capable of performing Helm operations for a v2beta1.HelmRelease.

func NewRunner

func NewRunner(clusterCfg *rest.Config, releaseNamespace, storageNamespace string, logger logr.Logger) (*Runner, error)

NewRunner constructs a new Runner configured to run Helm actions with the given rest.Config, and the release and storage namespace configured to the provided values.

func (*Runner) Install

func (r *Runner) Install(hr v2.HelmRelease, chart *chart.Chart, values chartutil.Values) (*release.Release, error)

Install runs an Helm install action for the given v2beta1.HelmRelease.

func (*Runner) ObserveLastRelease

func (r *Runner) ObserveLastRelease(hr v2.HelmRelease) (*release.Release, error)

ObserveLastRelease observes the last revision, if there is one, for the actual Helm release associated with the given v2beta1.HelmRelease.

func (*Runner) Rollback

func (r *Runner) Rollback(hr v2.HelmRelease) error

Rollback runs an Helm rollback action for the given v2beta1.HelmRelease.

func (*Runner) Test

func (r *Runner) Test(hr v2.HelmRelease) (*release.Release, error)

Test runs an Helm test action for the given v2beta1.HelmRelease.

func (*Runner) Uninstall

func (r *Runner) Uninstall(hr v2.HelmRelease) error

Uninstall runs an Helm uninstall action for the given v2beta1.HelmRelease.

func (*Runner) Upgrade

func (r *Runner) Upgrade(hr v2.HelmRelease, chart *chart.Chart, values chartutil.Values) (*release.Release, error)

Upgrade runs an Helm upgrade action for the given v2beta1.HelmRelease.

Jump to

Keyboard shortcuts

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