helm

package
v1.0.0-beta.9 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2019 License: Apache-2.0 Imports: 25 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 (
	ErrNoDeployedReleaseRevisionFound = errors.New("no DEPLOYED release revision found")
)
View Source
var (
	KubeContext string
)

Functions

func DeployHelmChart

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

func FormatHelmCmdError

func FormatHelmCmdError(stdout, stderr string, err error) error

func FormatHelmCmdOutput

func FormatHelmCmdOutput(stdout, stderr string) string

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 GetTemplatesFromChart

func GetTemplatesFromChart(chartPath, releaseName string, set, setString, values []string) (ChartTemplates, error)

func GetTemplatesFromRevision

func GetTemplatesFromRevision(releaseName string, revision int) (ChartTemplates, error)

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 ReleaseHistory

type ReleaseHistory []ReleaseHistoryRecord

func GetReleaseHistory

func GetReleaseHistory(releaseName string) (ReleaseHistory, error)

type ReleaseHistoryRecord

type ReleaseHistoryRecord struct {
	Revision    int    `json:"revision"`
	Updated     string `json:"updated"`
	Status      string `json:"status"`
	Chart       string `json:"chart"`
	Description string `json:"description"`
}

type ReleaseStatus

type ReleaseStatus struct {
	IsExists    bool
	Status      string
	PurgeNeeded bool
}

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