helm3lib

package
v1.5.0-slog1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init(opts *Options) 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 {
	LogEntry  *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
	Logger     *log.Logger
}

Jump to

Keyboard shortcuts

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