helm3lib

package
v1.0.6 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2022 License: Apache-2.0 Imports: 21 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init(opts *Options) error

Init runs

func NewClient

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

Types

type LibClient

type LibClient struct {
	KubeClient klient.Client
	LogEntry   *log.Entry
	Namespace  string
}

Library use client

func (*LibClient) CommandEnv

func (h *LibClient) CommandEnv() []string

func (*LibClient) DeleteOldFailedRevisions

func (h *LibClient) DeleteOldFailedRevisions(releaseName string) error

func (*LibClient) DeleteRelease

func (h *LibClient) DeleteRelease(releaseName string) error

func (*LibClient) DeleteSingleFailedRevision

func (h *LibClient) DeleteSingleFailedRevision(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) ListReleases

func (h *LibClient) ListReleases(labelSelector map[string]string) (releases []string, err error)

ListReleases returns all known releases as strings — "<release_name>.v<release_number>" It is required only for helm2.

func (*LibClient) ListReleasesNames

func (h *LibClient) 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 (*LibClient) Render

func (h *LibClient) Render(releaseName, chartName string, valuesPaths, setValues []string, namespace string) (string, error)

func (*LibClient) UpgradeRelease

func (h *LibClient) UpgradeRelease(releaseName string, chartName string, valuesPaths []string, setValues []string, namespace string) error

func (*LibClient) WithKubeClient

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

type Options

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

Jump to

Keyboard shortcuts

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