helm3lib

package
v1.5.3 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2024 License: Apache-2.0 Imports: 24 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init(opts *Options, logger *log.Logger, extraLabels map[string]string) error

func NewClient

func NewClient(logger *log.Logger, logLabels ...map[string]string) client.HelmClient

func ReinitActionConfig added in v1.5.0

func ReinitActionConfig(logger *log.Logger) error

ReinitActionConfig reinitializes helm3 action configuration to update its list of capabilities

Types

type LibClient

type LibClient struct {
	Logger    *log.Logger
	Namespace string
}

LibClient use helm3 package as Go library.

func (*LibClient) DeleteRelease

func (h *LibClient) DeleteRelease(releaseName string) error

func (*LibClient) GetReleaseValues

func (h *LibClient) GetReleaseValues(releaseName string) (utils.Values, error)

func (*LibClient) IsReleaseExists

func (h *LibClient) IsReleaseExists(releaseName string) (bool, error)

func (*LibClient) LastReleaseStatus

func (h *LibClient) LastReleaseStatus(releaseName string) (revision string, status string, err error)

LastReleaseStatus returns last known revision for release and its status

func (*LibClient) ListReleasesNames

func (h *LibClient) ListReleasesNames() ([]string, error)

ListReleasesNames returns list of release names.

func (*LibClient) Render

func (h *LibClient) Render(releaseName, chartName string, valuesPaths, setValues []string, namespace string, debug bool) (string, error)

func (*LibClient) UpgradeRelease

func (h *LibClient) UpgradeRelease(releaseName string, chartName string, valuesPaths []string, setValues []string, namespace string) error

type Options

type Options struct {
	Namespace  string
	HistoryMax int32
	Timeout    time.Duration
}

Jump to

Keyboard shortcuts

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