helm

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2023 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CliSettings = cli.New()

Functions

This section is empty.

Types

type Helm

type Helm struct {
	Namespace    string
	ActionConfig *action.Configuration
}

func (*Helm) AddRepo added in v0.2.1

func (h *Helm) AddRepo(name, url string)

func (*Helm) Install

func (h *Helm) Install(chartPath string) (*release.Release, error)

Install a specific Helm chart

func (*Helm) InstallNamed

func (h *Helm) InstallNamed(releaseName, chartPath string) (*release.Release, error)

InstallNamed a named helm chart

func (*Helm) InstallNamespaced

func (h *Helm) InstallNamespaced(repoPath, namespace string, createNamespace bool) (*release.Release, error)

InstallNamespaced installs a namespaced helm chart

func (*Helm) InstallNamespacedWithRelease added in v0.2.1

func (h *Helm) InstallNamespacedWithRelease(repoPath, releaseName, namespace string, createNamespace bool) (*release.Release, error)

InstallNamespacedWithRelease installs a namespaced helm chart

func (*Helm) InstallWithValues

func (h *Helm) InstallWithValues(chartPath string, values map[string]interface{}) (*release.Release, error)

InstallWithValues a specific Helm chart with value overwrite

func (*Helm) List

func (h *Helm) List() ([]*release.Release, error)

List installed Helm charts

func (*Helm) SearchRepo added in v0.2.1

func (h *Helm) SearchRepo(name string) bool

func (*Helm) UpdateRepos added in v0.2.1

func (h *Helm) UpdateRepos() error

type HelmClient

type HelmClient interface {
	Install(chartPath string) (*release.Release, error)
	InstallNamed(releaseName, chartPath string) (*release.Release, error)
	InstallWithValues(chartPath string, values map[string]interface{}) (*release.Release, error)
	InstallNamespaced(chartPath, namespace string, createNamespace bool) (*release.Release, error)
	InstallNamespacedWithRelease(chartPath, releaseName, namespace string, createNamespace bool) (*release.Release, error)
	List() ([]*release.Release, error)
	AddRepo(name, url string)
	UpdateRepos() error
	SearchRepo(name string) bool
}

func NewHelmClient

func NewHelmClient(kubeConfig []byte, ns string) (HelmClient, error)

Jump to

Keyboard shortcuts

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