helm

package
v0.0.35 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrRequiredArg0Empty = errors.New("required first arg is empty")
View Source
var ErrRequiredArg0Nil = errors.New("required first arg is nil")

Functions

func FuncMap

func FuncMap() template.FuncMap

func RenderWithReferences

func RenderWithReferences(referenceTpl Renderable) (rendered string, err error)

Types

type HelmCmd

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

func NewHelm

func NewHelm() (*HelmCmd, error)

func (*HelmCmd) CreateManifest

func (h *HelmCmd) CreateManifest(repo string, version string, values string) (string, error)

func (*HelmCmd) CreateValues

func (h *HelmCmd) CreateValues() (string, error)

type Renderable

type Renderable struct {
	// tpl is the current template.
	Tpl string
	// vals are the values to be supplied to the template.
	Vals Values
}

renderable is an object that can be rendered.

type Values

type Values struct {
	Values map[interface{}]interface{}
}

Values represents a collection of chart values. type Values map[string]interface{} We wrap this so that we can pass it to a chart using our engine as Values Now apply the template to resolve references e.g. {{ Values.this.port }}

Jump to

Keyboard shortcuts

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