runner

package
v0.36.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDebugLog added in v0.9.0

func NewDebugLog(log logr.Logger) action.DebugLog

Types

type ActionError added in v0.9.0

type ActionError struct {
	Err          error
	CapturedLogs string
}

func (ActionError) Error added in v0.9.0

func (e ActionError) Error() string

func (ActionError) Unwrap added in v0.9.0

func (e ActionError) Unwrap() error

type LogBuffer added in v0.9.0

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

func NewLogBuffer added in v0.9.0

func NewLogBuffer(log action.DebugLog, size int) *LogBuffer

func (*LogBuffer) Log added in v0.9.0

func (l *LogBuffer) Log(format string, v ...interface{})

func (*LogBuffer) Reset added in v0.9.0

func (l *LogBuffer) Reset()

func (*LogBuffer) String added in v0.9.0

func (l *LogBuffer) String() string

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(getter genericclioptions.RESTClientGetter, storageNamespace string, logger logr.Logger) (*Runner, error)

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

func (*Runner) Install

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

Install runs a 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(ctx context.Context, 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