helm3lib

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2025 License: Apache-2.0 Imports: 26 Imported by: 2 modules, 1 package

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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
	HelmIgnoreRelease 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) (string, string, 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
	HelmIgnoreRelease string
}

Jump to

Keyboard shortcuts

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