helm

package
v2.5.6 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDefaultReleaseManager

func NewDefaultReleaseManager(kubeConfig string, logger logr.Logger) *defaultReleaseManager

NewDefaultReleaseManager constructs new defaultReleaseManager.

Types

type ActionOption

type ActionOption func(opts *ActionOptions)

ActionOption configures ActionOptions.

func WithTimeout

func WithTimeout(timeout time.Duration) ActionOption

WithTimeout configures timeout for helm action

type ActionOptions

type ActionOptions struct {
	// The duration to wait for helm operations. when zero, wait is disabled.
	Timeout time.Duration
}

ActionOptions contains general helm action options

func (*ActionOptions) ApplyOptions

func (opts *ActionOptions) ApplyOptions(options []ActionOption)

ApplyOptions applies all ActionOption

type ReleaseManager

type ReleaseManager interface {
	// InstallOrUpgradeRelease install or upgrade helm release
	InstallOrUpgradeRelease(chartName string,
		namespace string, releaseName string, vals map[string]interface{}, opts ...ActionOption) (*release.Release, error)

	// InstallRelease install helm release
	InstallRelease(chartName string,
		namespace string, releaseName string, vals map[string]interface{}, opts ...ActionOption) (*release.Release, error)

	// UpgradeRelease upgrade helm release
	UpgradeRelease(chartName string,
		namespace string, releaseName string, vals map[string]interface{}, opts ...ActionOption) (*release.Release, error)
}

ReleaseManager is responsible for manage helm releases

Jump to

Keyboard shortcuts

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