helm3lib

package
v1.17.11 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2025 License: Apache-2.0 Imports: 31 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrLabelIsNotFound = errors.New("label is not found")

Functions

func Init

func Init(opts *Options, logger *log.Logger) error

func NewClient

func NewClient(logger *log.Logger, labels 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
	HelmIgnoreRelease string
	// contains filtered or unexported fields
}

LibClient use helm3 package as Go library.

func (*LibClient) DeleteRelease

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

func (*LibClient) GetReleaseChecksum deprecated added in v1.6.2

func (h *LibClient) GetReleaseChecksum(releaseName string) (string, error)

Deprecated: use GetReleaseLabels instead

func (*LibClient) GetReleaseLabels added in v1.7.1

func (h *LibClient) GetReleaseLabels(releaseName, labelName string) (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) (string, string, error)

LastReleaseStatus returns last known revision for release and its status

func (*LibClient) ListReleases

func (h *LibClient) ListReleases() ([]*release.Release, error)

ListReleases retrieves all Helm releases regardless of their state.

func (*LibClient) ListReleasesNames

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

ListReleasesNames returns list of release names.

func (*LibClient) Render

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

func (*LibClient) UpgradeRelease

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

func (*LibClient) WithExtraAnnotations added in v1.14.0

func (h *LibClient) WithExtraAnnotations(_ map[string]string)

func (*LibClient) WithExtraLabels added in v1.6.2

func (h *LibClient) WithExtraLabels(labels map[string]string)

func (*LibClient) WithLogLabels added in v1.6.2

func (h *LibClient) WithLogLabels(logLabels map[string]string)

type Options

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

Jump to

Keyboard shortcuts

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