helm

package
v0.27.0-rc.0 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2024 License: Apache-2.0 Imports: 27 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// HelmChartConfigMediaType is the reserved media type for the Helm chart
	// manifest config.
	HelmChartConfigMediaType = "application/vnd.cncf.helm.config.v1+json"

	// HelmChartContentLayerMediaType is the reserved media type for Helm chart
	// package content.
	HelmChartContentLayerMediaType = "application/vnd.cncf.helm.chart.content.v1.tar+gzip"
)

Variables

This section is empty.

Functions

func NewManager

func NewManager(config *rest.Config, chartName string, repoURL *url.URL, modifiers ...InstallerModifierFn) (install.Manager, error)

NewManager builds a helm install manager for UXP.

func NewParser

func NewParser(base map[string]any, overrides map[string]string) install.ParameterParser

NewParser returns a parameter parser backed by helm.

Types

type HomeDirFn

type HomeDirFn func() (string, error)

HomeDirFn indicates the location of a user's home directory.

type Installer added in v0.25.0

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

func (*Installer) GetCurrentVersion added in v0.25.0

func (h *Installer) GetCurrentVersion() (string, error)

GetCurrentVersion gets the current UXP version in the cluster.

func (*Installer) Install added in v0.25.0

func (h *Installer) Install(version string, parameters map[string]any, opts ...install.InstallOption) error

Install installs in the cluster.

func (*Installer) Uninstall added in v0.25.0

func (h *Installer) Uninstall() error

Uninstall uninstalls an installation.

func (*Installer) Upgrade added in v0.25.0

func (h *Installer) Upgrade(version string, parameters map[string]any, opts ...install.UpgradeOption) error

Upgrade upgrades an existing installation to a new version.

type InstallerModifierFn

type InstallerModifierFn func(*Installer)

InstallerModifierFn modifies the installer.

func Force

func Force(f bool) InstallerModifierFn

Force will force operations when possible.

func IsOCI

func IsOCI() InstallerModifierFn

IsOCI indicates that the chart is an OCI image.

func RollbackOnError

func RollbackOnError(r bool) InstallerModifierFn

RollbackOnError will cause installer to rollback on failed upgrade.

func Wait added in v0.25.0

func Wait() InstallerModifierFn

Wait will wait operations till they are completed.

func WithAlternateChart

func WithAlternateChart(chartName string) InstallerModifierFn

WithAlternateChart sets an alternate chart that is compatible to upgrade from if installed.

func WithBasicAuth

func WithBasicAuth(username, password string) InstallerModifierFn

WithBasicAuth sets the username and password for the helm installer.

func WithCacheDir

func WithCacheDir(c string) InstallerModifierFn

WithCacheDir sets the cache directory for the helm installer.

func WithChart

func WithChart(chartFile *os.File) InstallerModifierFn

WithChart sets the chart to be installed/upgraded

func WithLogger

func WithLogger(l logging.Logger) InstallerModifierFn

WithLogger sets the logger for the helm installer.

func WithNamespace

func WithNamespace(ns string) InstallerModifierFn

WithNamespace sets the namespace for the helm installer.

func WithNoHooks added in v0.25.0

func WithNoHooks() InstallerModifierFn

WithNoHooks will disable uninstall hooks

type LoaderFn

type LoaderFn func(name string) (*chart.Chart, error)

LoaderFn knows how to load a helm chart.

type Parser

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

Parser is a helm-style parameter parser.

func (*Parser) Parse

func (p *Parser) Parse() (map[string]any, error)

Parse parses install and upgrade parameters

type TempDirFn

type TempDirFn func(afero.Fs, string, string) (string, error)

TempDirFn knows how to create a temporary directory in a filesystem.

Jump to

Keyboard shortcuts

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