helm3

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2023 License: Apache-2.0 Imports: 16 Imported by: 1

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 {
	KubeClient klient.Client
	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(labelSelector map[string]string) ([]string, error)

ListReleasesNames returns list of release names. Names are extracted from label "name" in Secrets with label "owner"=="helm".

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

func (*Helm3Client) WithKubeClient

func (h *Helm3Client) WithKubeClient(client klient.Client)

type Helm3Options

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

Jump to

Keyboard shortcuts

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