helm

package
v1.3.3 Latest Latest
Warning

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

Go to latest
Published: May 16, 2023 License: Apache-2.0 Imports: 18 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Fake

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

Fake implementation

func NewEmptyFake

func NewEmptyFake() *Fake

func NewFake

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

func (*Fake) GetConfig added in v1.0.0

func (r *Fake) GetConfig(kubeNamespace string, log action.DebugLog) (*action.Configuration, error)

func (*Fake) GetResources

func (r *Fake) GetResources(cfg *action.Configuration, manifest string) ([]*unstructured.Unstructured, error)

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

func (*Fake) Install

func (r *Fake) Install(ctx context.Context, cfg *action.Configuration, chrt *chart.Chart, kubeNamespace,
	releaseName string, vals map[string]interface{}) (*release.Release, error)

Install helm release

func (*Fake) IsInstalled added in v1.0.0

func (r *Fake) IsInstalled(cfg *action.Configuration, releaseName string) (bool, error)

func (*Fake) Load added in v0.6.0

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

Load helm chart

func (*Fake) Package added in v0.6.0

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

Package helm chart from repo

func (*Fake) Pull added in v0.6.0

func (r *Fake) Pull(cfg *action.Configuration, ref, destination string) error

ChartPull helm chart from repo

func (*Fake) RegistryLogin

func (r *Fake) RegistryLogin(hostname, username, 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(cfg *action.Configuration, releaseName string) (*release.Release, error)

Status of helm release

func (*Fake) Uninstall

func (r *Fake) Uninstall(cfg *action.Configuration, releaseName string) (*release.UninstallReleaseResponse, error)

Uninstall helm release

func (*Fake) Upgrade

func (r *Fake) Upgrade(ctx context.Context, cfg *action.Configuration, chrt *chart.Chart, kubeNamespace,
	releaseName string, vals map[string]interface{}) (*release.Release, error)

Upgrade helm release

type Impl

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

Impl implementation

func NewHelmerImpl added in v1.0.0

func NewHelmerImpl(chartsPath string) *Impl

func (*Impl) GetConfig added in v1.0.0

func (r *Impl) GetConfig(kubeNamespace string, log action.DebugLog) (*action.Configuration, error)

func (*Impl) GetResources

func (r *Impl) GetResources(cfg *action.Configuration, manifest string) ([]*unstructured.Unstructured, error)

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

func (*Impl) Install

func (r *Impl) Install(ctx context.Context, cfg *action.Configuration, chrt *chart.Chart, kubeNamespace,
	releaseName string, vals map[string]interface{}) (*release.Release, error)

Install helm release from packaged chart

func (*Impl) IsInstalled added in v1.0.0

func (r *Impl) IsInstalled(cfg *action.Configuration, releaseName string) (bool, error)

func (*Impl) Load added in v0.6.0

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

Load helm chart

func (*Impl) Package added in v0.6.0

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

Package helm chart from repo

func (*Impl) Pull added in v0.6.0

func (r *Impl) Pull(cfg *action.Configuration, ref, destination string) error

Pull helm chart from repo

func (*Impl) RegistryLogin

func (r *Impl) RegistryLogin(hostname, username, 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(cfg *action.Configuration, releaseName string) (*release.Release, error)

Status of helm release

func (*Impl) Uninstall

func (r *Impl) Uninstall(cfg *action.Configuration, releaseName string) (*release.UninstallReleaseResponse, error)

Uninstall helm release

func (*Impl) Upgrade

func (r *Impl) Upgrade(ctx context.Context, cfg *action.Configuration, chrt *chart.Chart, kubeNamespace,
	releaseName string, vals map[string]interface{}) (*release.Release, error)

Upgrade helm release

type Interface

type Interface interface {
	GetConfig(kubeNamespace string, log action.DebugLog) (*action.Configuration, error)

	Uninstall(cfg *action.Configuration, releaseName string) (*release.UninstallReleaseResponse, error)
	Install(ctx context.Context, cfg *action.Configuration, chart *chart.Chart, kubeNamespace string,
		releaseName string, vals map[string]interface{}) (*release.Release, error)
	Upgrade(ctx context.Context, cfg *action.Configuration, chart *chart.Chart, kubeNamespace string,
		releaseName string, vals map[string]interface{}) (*release.Release, error)
	Status(cfg *action.Configuration, releaseName string) (*release.Release, error)
	Pull(cfg *action.Configuration, ref string, destination string) error
	IsInstalled(cfg *action.Configuration, releaseName string) (bool, error)

	RegistryLogin(hostname string, username string, password string, insecure bool) error
	RegistryLogout(hostname string) error
	Load(ref string, chartPath string) (*chart.Chart, error)
	Package(chartPath string, destinationPath string, version string) error
	GetResources(cfg *action.Configuration, manifest 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