helm

package
v0.6.1-rc1 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2022 License: Apache-2.0 Imports: 13 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ChartRef

func ChartRef(hostname string, namespace string, name string, tagname string) string

Types

type Fake

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

Fake implementation

func NewEmptyFake

func NewEmptyFake() *Fake

func NewFake

func NewFake(release *release.Release, resources []*unstructured.Unstructured) *Fake

func (*Fake) GetResources

func (r *Fake) GetResources(kubeNamespace string, releaseName string) ([]*unstructured.Unstructured, error)

GetResources returns allocated resources for the specified release (their current state)

func (*Fake) Install

func (r *Fake) Install(chart *chart.Chart, kubeNamespace string, releaseName string, vals map[string]interface{}) (*release.Release, error)

Install helm release

func (*Fake) Load added in v0.6.0

func (r *Fake) Load(ref string, chartPath string) (*chart.Chart, error)

Load helm chart

func (*Fake) Package added in v0.6.0

func (r *Fake) Package(chartPath string, destinationPath string, version string) error

Package helm chart from repo

func (*Fake) Pull added in v0.6.0

func (r *Fake) Pull(ref string, destination string) error

ChartPull helm chart from repo

func (*Fake) RegistryLogin

func (r *Fake) RegistryLogin(hostname string, username string, password string, insecure bool) error

RegistryLogin to docker registry v2

func (*Fake) RegistryLogout

func (r *Fake) RegistryLogout(hostname string) error

RegistryLogout to docker registry v2

func (*Fake) Status

func (r *Fake) Status(kubeNamespace string, releaseName string) (*release.Release, error)

Status of helm release

func (*Fake) Uninstall

func (r *Fake) Uninstall(kubeNamespace string, releaseName string) (*release.UninstallReleaseResponse, error)

Uninstall helm release

func (*Fake) Upgrade

func (r *Fake) Upgrade(chart *chart.Chart, kubeNamespace string, releaseName string, vals map[string]interface{}) (*release.Release, error)

Upgrade helm release

type Impl

type Impl struct {
}

Impl implementation

func (*Impl) GetResources

func (r *Impl) GetResources(kubeNamespace string, releaseName string) ([]*unstructured.Unstructured, error)

GetResources returns allocated resources for the specified release (their current state)

func (*Impl) Install

func (r *Impl) Install(chart *chart.Chart, kubeNamespace string, releaseName string, vals map[string]interface{}) (*release.Release, error)

Install helm release from packaged chart

func (*Impl) Load added in v0.6.0

func (r *Impl) Load(ref string, chartPath string) (*chart.Chart, error)

Load helm chart

func (*Impl) Package added in v0.6.0

func (r *Impl) Package(chartPath string, destinationPath string, version string) error

Package helm chart from repo

func (*Impl) Pull added in v0.6.0

func (r *Impl) Pull(ref string, destination string) error

Pull helm chart from repo

func (*Impl) RegistryLogin

func (r *Impl) RegistryLogin(hostname string, username string, password string, insecure bool) error

RegistryLogin to docker registry v2

func (*Impl) RegistryLogout

func (r *Impl) RegistryLogout(hostname string) error

RegistryLogout to docker registry v2

func (*Impl) Status

func (r *Impl) Status(kubeNamespace string, releaseName string) (*release.Release, error)

Status of helm release

func (*Impl) Uninstall

func (r *Impl) Uninstall(kubeNamespace string, releaseName string) (*release.UninstallReleaseResponse, error)

Uninstall helm release

func (*Impl) Upgrade

func (r *Impl) Upgrade(chart *chart.Chart, kubeNamespace string, releaseName string, vals map[string]interface{}) (*release.Release, error)

Upgrade helm release

type Interface

type Interface interface {
	Uninstall(kubeNamespace string, releaseName string) (*release.UninstallReleaseResponse, error)
	Install(chart *chart.Chart, kubeNamespace string, releaseName string, vals map[string]interface{}) (*release.Release, error)
	Upgrade(chart *chart.Chart, kubeNamespace string, releaseName string, vals map[string]interface{}) (*release.Release, error)
	Status(kubeNamespace string, releaseName string) (*release.Release, error)
	RegistryLogin(hostname string, username string, password string, insecure bool) error
	RegistryLogout(hostname string) error
	Pull(ref string, destination string) error
	Load(ref string, chartPath string) (*chart.Chart, error)
	Package(chartPath string, destinationPath string, version string) error
	GetResources(kubeNamespace string, releaseName string) ([]*unstructured.Unstructured, error)
}

Interface of a helm chart

Jump to

Keyboard shortcuts

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