helm

package
v1.0.0-beta.4 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2019 License: Apache-2.0 Imports: 14 Imported by: 4

Documentation

Index

Constants

View Source
const HelmPath = "helm"

Variables

This section is empty.

Functions

func Init

func Init(tillerNamespace string) error

Init starts Tiller installation.

Types

type CliHelm

type CliHelm struct {
	// contains filtered or unexported fields
}

func (*CliHelm) Cmd

func (helm *CliHelm) Cmd(args ...string) (stdout string, stderr string, err error)

Cmd starts Helm with specified arguments. Sets the TILLER_NAMESPACE environment variable before starting, because Addon-operator works with its own Tiller.

func (*CliHelm) CommandEnv

func (helm *CliHelm) CommandEnv() []string

func (*CliHelm) DeleteOldFailedRevisions

func (helm *CliHelm) DeleteOldFailedRevisions(releaseName string) error

func (*CliHelm) DeleteRelease

func (helm *CliHelm) DeleteRelease(releaseName string) (err error)

func (*CliHelm) DeleteSingleFailedRevision

func (helm *CliHelm) DeleteSingleFailedRevision(releaseName string) (err error)

func (*CliHelm) GetReleaseValues

func (helm *CliHelm) GetReleaseValues(releaseName string) (utils.Values, error)

func (*CliHelm) InitTiller

func (helm *CliHelm) InitTiller() error

InitTiller runs helm init with the same ServiceAccountName, NodeSelector and Tolerations as a Pod of addon-operator

func (*CliHelm) IsReleaseExists

func (helm *CliHelm) IsReleaseExists(releaseName string) (bool, error)

func (*CliHelm) LastReleaseStatus

func (helm *CliHelm) LastReleaseStatus(releaseName string) (revision string, status string, err error)

TODO get this info from cm Get last known revision and status 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 (*CliHelm) ListReleases

func (helm *CliHelm) ListReleases(labelSelector map[string]string) ([]string, error)

Returns all known releases as strings — "<release_name>.v<release_number>" Helm looks for ConfigMaps by label 'OWNER=TILLER' and gets release info from the 'release' key. https://github.com/kubernetes/helm/blob/8981575082ea6fc2a670f81fb6ca5b560c4f36a7/pkg/storage/driver/cfgmaps.go#L88

func (*CliHelm) ListReleasesNames

func (helm *CliHelm) ListReleasesNames(labelSelector map[string]string) ([]string, error)

ListReleasesNames returns list of release names without suffixes ".v<release_number>"

func (*CliHelm) TillerNamespace

func (helm *CliHelm) TillerNamespace() string

func (*CliHelm) UpgradeRelease

func (helm *CliHelm) UpgradeRelease(releaseName string, chart string, valuesPaths []string, setValues []string, namespace string) error

type HelmClient

type HelmClient interface {
	TillerNamespace() string
	CommandEnv() []string
	Cmd(args ...string) (string, string, error)
	DeleteSingleFailedRevision(releaseName string) error
	DeleteOldFailedRevisions(releaseName string) error
	LastReleaseStatus(releaseName string) (string, string, error)
	UpgradeRelease(releaseName string, chart string, valuesPaths []string, setValues []string, namespace string) error
	GetReleaseValues(releaseName string) (utils.Values, error)
	DeleteRelease(releaseName string) error
	ListReleases(labelSelector map[string]string) ([]string, error)
	ListReleasesNames(labelSelector map[string]string) ([]string, error)
	IsReleaseExists(releaseName string) (bool, error)
}
var Client HelmClient

Jump to

Keyboard shortcuts

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