helm3

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Helm3Path = "helm"

Functions

func Init

func Init(options *Helm3Options) error

Init runs

func NewClient

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

Types

type Helm3Client

type Helm3Client struct {
	LogEntry  *log.Entry
	Namespace string
}

func (*Helm3Client) DeleteRelease

func (h *Helm3Client) DeleteRelease(releaseName string) (err error)

func (*Helm3Client) GetReleaseValues

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

func (*Helm3Client) IsReleaseExists

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

func (*Helm3Client) LastReleaseStatus

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

LastReleaseStatus returns last known revision for release and its status

Example helm history output:
REVISION	UPDATED                 	STATUS    	CHART                 	DESCRIPTION
1        Fri Jul 14 18:25:00 2017	SUPERSEDED	symfony-demo-0.1.0    	Install complete

func (*Helm3Client) ListReleasesNames

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

ListReleasesNames returns list of release names.

func (*Helm3Client) Render

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

Render renders helm templates for chart

func (*Helm3Client) UpgradeRelease

func (h *Helm3Client) UpgradeRelease(releaseName string, chart string, valuesPaths []string, setValues []string, namespace string) error

type Helm3Options

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

Jump to

Keyboard shortcuts

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