helm

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2019 License: GPL-3.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Extrapolate added in v0.1.0

func Extrapolate(tpl string, values map[string]string) map[string]string

func Generate

func Generate(name string, data, out *[]byte, values map[string]string)

Generate renders the given values template

func LoadFile

func LoadFile(vals string) []byte

func LoadVals

func LoadVals(vals string, data []byte) map[string]string

func MergeVals

func MergeVals(prev map[string]string, next map[string]string)

Types

type Bridge

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

Bridge represents a helm client and open conn to tiller

func Setup

func Setup(namespace, port string) *Bridge

Setup creates a new connection to tiller

func (*Bridge) Close

func (b *Bridge) Close()

Close gracefully exits the connection to tiller

type Chart

type Chart struct {
	Name      string   `yaml:"name"`      // name of chart
	Repo      string   `yaml:"repo"`      // chart repo
	Version   string   `yaml:"version"`   // chart version
	Release   string   `yaml:"release"`   // release name
	Timeout   int64    `yaml:"timeout"`   // install / upgrade wait time
	Namespace string   `yaml:"namespace"` // namespace
	Abandon   bool     `yaml:"abandon"`   // install only
	Values    string   `yaml:"values"`    // chart specific values
	Requires  []string `yaml:"requires"`  // env requirements
	Depends   []string `yaml:"depends"`   // dependencies
	Jobs      Jobs     `yaml:"jobs"`      // bash jobs
	Templates []string `yaml:"templates"` // templates
}

Chart represents a single stage of the deployment pipeline.

func (*Chart) Make added in v0.1.0

func (chart *Chart) Make(helm *Bridge, key string, main map[string]string, verbose bool, deps *Depends) error

Make creates the chart once its dependencies have been met

func (*Chart) Remove added in v0.1.0

func (chart *Chart) Remove(helm *Bridge, key string, values map[string]string, verbose bool, deps *Depends) error

Remove deletes the chart once its dependencies have been met

type Depends added in v0.1.0

type Depends map[string]*sync.WaitGroup

func (Depends) Complete added in v0.1.0

func (d Depends) Complete(charts ...string)

func (Depends) Wait added in v0.1.0

func (d Depends) Wait(charts ...string)

type Jobs

type Jobs struct {
	Before []string `yaml:"before"`
	After  []string `yaml:"after"`
}

Jobs represent any bash jobs that should be run as part of a release.

type Pipeline

type Pipeline struct {
	Derive string            `yaml:"derive"`
	Charts map[string]*Chart `yaml:"charts"`
	Values map[string]string `yaml:"values"`
}

Pipeline represents the complete workflow.

func (Pipeline) BuildDepends added in v0.1.0

func (p Pipeline) BuildDepends(reverse bool) *Depends

BuildDepends generates a dependency map

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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