Documentation
¶
Index ¶
- Constants
- func Init(tillerNamespace string) error
- type CliHelm
- func (helm *CliHelm) Cmd(args ...string) (stdout string, stderr string, err error)
- func (helm *CliHelm) CommandEnv() []string
- func (helm *CliHelm) DeleteOldFailedRevisions(releaseName string) error
- func (helm *CliHelm) DeleteRelease(releaseName string) (err error)
- func (helm *CliHelm) DeleteSingleFailedRevision(releaseName string) (err error)
- func (helm *CliHelm) GetReleaseValues(releaseName string) (utils.Values, error)
- func (helm *CliHelm) InitTiller() error
- func (helm *CliHelm) IsReleaseExists(releaseName string) (bool, error)
- func (helm *CliHelm) LastReleaseStatus(releaseName string) (revision string, status string, err error)
- func (helm *CliHelm) ListReleases(labelSelector map[string]string) ([]string, error)
- func (helm *CliHelm) ListReleasesNames(labelSelector map[string]string) ([]string, error)
- func (helm *CliHelm) TillerNamespace() string
- func (helm *CliHelm) UpgradeRelease(releaseName string, chart string, valuesPaths []string, setValues []string, ...) error
- type HelmClient
Constants ¶
const HelmPath = "helm"
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CliHelm ¶
type CliHelm struct {
// contains filtered or unexported fields
}
func (*CliHelm) Cmd ¶
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 (*CliHelm) DeleteOldFailedRevisions ¶
func (*CliHelm) DeleteRelease ¶
func (*CliHelm) DeleteSingleFailedRevision ¶
func (*CliHelm) GetReleaseValues ¶
func (*CliHelm) InitTiller ¶
InitTiller runs helm init with the same ServiceAccountName, NodeSelector and Tolerations as a Pod of addon-operator
func (*CliHelm) IsReleaseExists ¶
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 ¶
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 ¶
ListReleasesNames returns list of release names without suffixes ".v<release_number>"
func (*CliHelm) TillerNamespace ¶
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