Documentation
¶
Index ¶
- Variables
- type Helm
- func (h *Helm) AddRepo(entry *repo.Entry) error
- func (h *Helm) AllCharts() ([]*search.Result, error)
- func (h *Helm) Get(namespace string, name string) (*release.Release, error)
- func (h *Helm) History(namespace string, release string, max int) ([]*release.Release, error)
- func (h *Helm) Install(namespace, chartName, releaseName string, createNamespace bool, ...) (*release.Release, error)
- func (h *Helm) IsInstalled(namespace string, release string) (bool, error)
- func (h *Helm) Rollback(namespace string, release string) error
- func (h *Helm) SearchCharts(term string, regex bool) ([]*search.Result, error)
- func (h *Helm) SearchReleases(namespace, selector string, limit, offset int) ([]*release.Release, error)
- func (h *Helm) Status(namespace string, release string) (*release.Release, error)
- func (h *Helm) Uninstall(namespace, releaseName string) (*release.UninstallReleaseResponse, error)
- func (h *Helm) UpdateRepos() error
- func (h *Helm) Upgrade(namespace string, chartName, releaseName string, recreate bool, ...) (*release.Release, error)
- type HelmOpt
Constants ¶
This section is empty.
Variables ¶
var StableCharts = &repo.Entry{
Name: "stable",
URL: "https://charts.helm.sh/stable",
}
StableCharts is a helm repo entry for the standard stable helm charts: https://charts.helm.sh/stable
Functions ¶
This section is empty.
Types ¶
type Helm ¶
type Helm struct {
// contains filtered or unexported fields
}
Helm is a v3 helm client(wrapper)
func (*Helm) Install ¶
func (h *Helm) Install(namespace, chartName, releaseName string, createNamespace bool, configVals map[string]string) (*release.Release, error)
Install a chart/release in the given namespace
func (*Helm) IsInstalled ¶
IsInstalled checks whether a release/chart is already installed on the cluster
func (*Helm) SearchCharts ¶
SearchCharts searches for a cached helm chart.
func (*Helm) SearchReleases ¶
func (h *Helm) SearchReleases(namespace, selector string, limit, offset int) ([]*release.Release, error)
SearchReleases searches for helm releases. If namespace is empty, all namespaces will be searched.
func (*Helm) Uninstall ¶
func (h *Helm) Uninstall(namespace, releaseName string) (*release.UninstallReleaseResponse, error)
Uninstall uninstalls a release by name in the given namespace
func (*Helm) UpdateRepos ¶
UpdateRepos updates all local helm repos
type HelmOpt ¶
type HelmOpt func(h *Helm)
HelmOpt is an optional argument to modify the helm client
func WithEnvFunc ¶
func WithEnvFunc(fn func(settings *cli.EnvSettings)) HelmOpt
WithEnvFunc modifies helm environmental settings
func WithLogger ¶
WithLogger modifies default logger