helm3lib

package
v1.3.12 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init(opts *Options) error

func NewClient

func NewClient(logLabels ...map[string]string) client.HelmClient

Types

type LibClient

type LibClient struct {
	LogEntry  *log.Entry
	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