helm

package
v0.0.0-...-310a06b Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2018 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Installer

type Installer interface {
	Install() error
	SetMaxWait(duration time.Duration)
}

func NewInstaller

func NewInstaller(registryConfig *config.RegistryConfig, cluster k8s.Cluster, client MyHelmClient, logger lager.Logger) Installer

type MyChart

type MyChart struct {
	*chart.Chart

	Values []byte
	Plans  map[string]Plan
	// contains filtered or unexported fields
}

func NewChart

func NewChart(chartPath string, privateRegistryServer string) (*MyChart, error)

func (*MyChart) LoadChartValues

func (c *MyChart) LoadChartValues() error

func (*MyChart) OverrideImageSources

func (c *MyChart) OverrideImageSources(rawVals map[string]interface{}) (map[string]interface{}, error)

func (*MyChart) ReadDefaultVals

func (c *MyChart) ReadDefaultVals(chartPath string) ([]byte, error)

type MyHelmClient

type MyHelmClient interface {
	helm.Interface
	Install(*helmstaller.Options) error
	Upgrade(*helmstaller.Options) error
	InstallChart(namespace string, planName string, options ...helm.InstallOption) (*rls.InstallReleaseResponse, error)
	MergeValueBytes(base []byte, override []byte) ([]byte, error)
}

- go:generate counterfeiter ./ MyHelmClient ^ counterfeiter is generating bad stubs interface. If needing to regenerate, fix above line & then re-fix stubs

func NewMyHelmClient

func NewMyHelmClient(chart *MyChart, cluster k8s.Cluster, logger lager.Logger) MyHelmClient

type Plan

type Plan struct {
	Name        string `yaml:"name"`
	Description string `yaml:"description"`
	File        string `yaml:"file"`
	Values      []byte
}

Directories

Path Synopsis
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

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