helmwrapper

package
v0.0.310 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrorTimedOutToWaitResource = errors.New("timed out waiting for resources to be ready")

	UninstallNotFoundFormat = "Error: uninstall: Release not loaded: %s: release: not found"
	StatusNotFoundFormat    = "Error: release: not found"
)

Functions

func NewHelmWrapper

func NewHelmWrapper(kubeconfig, ns, rls string, options ...Option) *helmWrapper

Types

type HelmRes

type HelmRes struct {
	Message string
}

type HelmWrapper

type HelmWrapper interface {
	Install(chartName, chartData, values string) error
	// upgrade a release
	Upgrade(chartName, chartData, values string) error
	Uninstall() error
	// Get manifests
	Manifest() (string, error)

	// IsReleaseReady check helm release is ready or not
	IsReleaseReady(timeout time.Duration) (bool, error)
}

type Option

type Option func(*helmWrapper)

func SetAnnotations

func SetAnnotations(annotations map[string]string) Option

extra annotations added to all resources in chart

func SetDryRun

func SetDryRun(dryRun bool) Option

func SetLabels

func SetLabels(labels map[string]string) Option

extra labels added to all resources in chart

func SetMock

func SetMock(mock bool) Option

Jump to

Keyboard shortcuts

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