Documentation ¶
Index ¶
- Constants
- func NewManager(config *rest.Config, chartName string, repoURL *url.URL, ...) (install.Manager, error)
- func NewParser(base map[string]any, overrides map[string]string) install.ParameterParser
- type HomeDirFn
- type Installer
- func (h *Installer) GetCurrentVersion() (string, error)
- func (h *Installer) Install(version string, parameters map[string]any, opts ...install.InstallOption) error
- func (h *Installer) Uninstall() error
- func (h *Installer) Upgrade(version string, parameters map[string]any, opts ...install.UpgradeOption) error
- type InstallerModifierFn
- func Force(f bool) InstallerModifierFn
- func IsOCI() InstallerModifierFn
- func RollbackOnError(r bool) InstallerModifierFn
- func Wait() InstallerModifierFn
- func WithAlternateChart(chartName string) InstallerModifierFn
- func WithBasicAuth(username, password string) InstallerModifierFn
- func WithCacheDir(c string) InstallerModifierFn
- func WithChart(chartFile *os.File) InstallerModifierFn
- func WithLogger(l logging.Logger) InstallerModifierFn
- func WithNamespace(ns string) InstallerModifierFn
- func WithNoHooks() InstallerModifierFn
- type LoaderFn
- type Parser
- type TempDirFn
Constants ¶
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 ¶
Types ¶
type Installer ¶ added in v0.25.0
type Installer struct {
// contains filtered or unexported fields
}
func (*Installer) GetCurrentVersion ¶ added in v0.25.0
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.
type InstallerModifierFn ¶
type InstallerModifierFn func(*Installer)
InstallerModifierFn modifies the installer.
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