helm

package
v1.3.0-rc1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsMissingDependencyErr added in v0.11.0

func IsMissingDependencyErr(err error) bool

IsMissingDependencyErr tests if the error is related to a missing chart dependency

func Version

func Version() (string, error)

Types

type Client

type Client interface {
	CleanChartCache(chart string, version string) error
	ExtractChart(chart string, version string) (string, util.Closer, error)
	GetIndex() (*Index, error)
}

func NewClient

func NewClient(repoURL string, creds Creds) Client

func NewClientWithLock

func NewClientWithLock(repoURL string, creds Creds, repoLock *util.KeyLock) Client

type Cmd

type Cmd struct {
	WorkDir string
	// contains filtered or unexported fields
}

A thin wrapper around the "helm" command, adding logging and error translation.

func NewCmd

func NewCmd(workDir string) (*Cmd, error)

func (*Cmd) Close

func (c *Cmd) Close()

func (*Cmd) Fetch

func (c *Cmd) Fetch(repo, chartName string, version string, opts Creds) (string, error)

func (*Cmd) Init

func (c *Cmd) Init() (string, error)

func (*Cmd) RepoAdd

func (c *Cmd) RepoAdd(name, url string, opts Creds) (string, error)

func (*Cmd) RepoUpdate

func (c *Cmd) RepoUpdate() (string, error)

type Creds

type Creds struct {
	Username string
	Password string
	CAPath   string
	CertData []byte
	KeyData  []byte
}

type Entry

type Entry struct {
	Version string
	Created time.Time
}

type Helm

type Helm interface {
	// Template returns a list of unstructured objects from a `helm template` command
	Template(opts *TemplateOpts) (string, error)
	// GetParameters returns a list of chart parameters taking into account values in provided YAML files.
	GetParameters(valuesFiles []string) (map[string]string, error)
	// DependencyBuild runs `helm dependency build` to download a chart's dependencies
	DependencyBuild() error
	// Init runs `helm init --client-only`
	Init() error
	// Dispose deletes temp resources
	Dispose()
}

Helm provides wrapper functionality around the `helm` command.

func NewHelmApp

func NewHelmApp(workDir string, repos []HelmRepository) (Helm, error)

NewHelmApp create a new wrapper to run commands on the `helm` command-line tool.

type HelmRepository

type HelmRepository struct {
	Creds
	Name string
	Repo string
}

type Index

type Index struct {
	Entries map[string][]Entry
}

type TemplateOpts

type TemplateOpts struct {
	Name        string
	Namespace   string
	KubeVersion string
	Set         map[string]string
	SetString   map[string]string
	Values      []string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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