helm

package
v1.0.0-beta.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	DefaultHelmTimeout = 24 * time.Hour

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

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

Variables

View Source
var (
	KubeContext string
)

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) 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 HelmChartOptions

type HelmChartOptions struct {
	Timeout time.Duration

	DryRun bool
	Debug  bool

	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