helm

package
v1.0.0-alpha.13 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2019 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultHelmTimeout = 24 * time.Hour

	TrackAnnoName          = "werf/track"
	HelmHookAnnoName       = "helm.sh/hook"
	HelmHookWeightAnnoName = "helm.sh/hook-weight"

	TrackDisabled  TrackAnno = "false"
	TrackTillDone  TrackAnno = "till_done"
	TrackTillReady TrackAnno = "till_ready"
)

Variables

This section is empty.

Functions

func DeployHelmChart

func DeployHelmChart(chartPath string, releaseName string, namespace string, opts HelmChartOptions) error

func HelmCmd

func HelmCmd(args ...string) (stdout string, stderr string, err error)

func HelmVersion

func HelmVersion() (*version.Version, error)

func PurgeHelmRelease

func PurgeHelmRelease(releaseName string, opts CommonHelmOptions) error

func ValidateHelmVersion

func ValidateHelmVersion() error

Types

type ChartTemplates

type ChartTemplates []*Template

func (*ChartTemplates) ByKind

func (templates *ChartTemplates) ByKind(kind string) []*Template

func (*ChartTemplates) DaemonSets

func (templates *ChartTemplates) DaemonSets() []*Template

func (*ChartTemplates) Deployments

func (templates *ChartTemplates) Deployments() []*Template

func (*ChartTemplates) Jobs

func (templates *ChartTemplates) Jobs() []*Template

func (*ChartTemplates) Pods

func (templates *ChartTemplates) Pods() []*Template

func (*ChartTemplates) StatefulSets

func (templates *ChartTemplates) StatefulSets() []*Template

type CommonHelmOptions

type CommonHelmOptions struct {
	KubeContext string
}

type HelmChartOptions

type HelmChartOptions struct {
	Timeout time.Duration

	DryRun bool
	Debug  bool

	CommonHelmOptions
	HelmChartValuesOptions
}

type HelmChartValuesOptions

type HelmChartValuesOptions struct {
	Set       []string
	SetString []string
	Values    []string
}

type Template

type Template struct {
	Version  string `yaml:"apiVersion"`
	Kind     string `yaml:"kind,omitempty"`
	Metadata *struct {
		Name        string            `yaml:"name"`
		Namespace   string            `yaml:"namespace"`
		Annotations map[string]string `yaml:"annotations"`
		Uid         string            `yaml:"uid"`
	} `yaml:"metadata,omitempty"`
	Status string `yaml:"status,omitempty"`
}

func (*Template) Namespace

func (t *Template) Namespace(namespace string) string

type TrackAnno

type TrackAnno string

Directories

Path Synopsis
module

Jump to

Keyboard shortcuts

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