Documentation ¶
Index ¶
- Constants
- Variables
- type HelmInstaller
- func (i *HelmInstaller) Delete(chartName string, repository string, version string, values string) error
- func (i *HelmInstaller) Get(name string) (*Installation, error)
- func (i *HelmInstaller) GetNamespace() string
- func (i *HelmInstaller) GetReleaseName(name string) string
- func (i *HelmInstaller) Install(chartName string, repository string, version string, values string) error
- func (i *HelmInstaller) IsUpgrade(comp *v1alpha1.WaveComponent, inst *Installation) bool
- func (i *HelmInstaller) SetNamespace(namespace string)
- func (i *HelmInstaller) Upgrade(chartName string, repository string, version string, values string) error
- type InstallSpec
- type Installation
- type Installer
Constants ¶
Variables ¶
View Source
var ( // ErrReleaseNotFound duplicates the helm error from the driver package ErrReleaseNotFound = errors.New("release: not found") )
View Source
var GetHelm = func(name string, getter genericclioptions.RESTClientGetter, log logr.Logger) Installer { return &HelmInstaller{ prefix: name, namespace: catalog.SystemNamespace, ClientGetter: getter, Log: log, } }
GetHelm matches type controller.InstallerGetter, returns a HelmInstaller
Functions ¶
This section is empty.
Types ¶
type HelmInstaller ¶
type HelmInstaller struct { ClientGetter genericclioptions.RESTClientGetter Log logr.Logger // contains filtered or unexported fields }
func (*HelmInstaller) Get ¶
func (i *HelmInstaller) Get(name string) (*Installation, error)
func (*HelmInstaller) GetNamespace ¶
func (i *HelmInstaller) GetNamespace() string
func (*HelmInstaller) GetReleaseName ¶
func (i *HelmInstaller) GetReleaseName(name string) string
func (*HelmInstaller) IsUpgrade ¶
func (i *HelmInstaller) IsUpgrade(comp *v1alpha1.WaveComponent, inst *Installation) bool
func (*HelmInstaller) SetNamespace ¶
func (i *HelmInstaller) SetNamespace(namespace string)
type InstallSpec ¶
type Installation ¶
type Installation struct { Name string Version string Values map[string]interface{} Status string Description string AppVersion string }
Installation represents a helm release, that is, a chart installed into a cluster
type Installer ¶
type Installer interface { // Namespace where components are installed, the namespace must exist before Install() is called GetNamespace() string // Set the namespace where components are installed SetNamespace(namespace string) // returns the release name for a given chart GetReleaseName(chartName string) string // Install applies a helm chart to a cluster. It's a lightweight wrapper around the helm 3 code Install(name string, repository string, version string, values string) error // Get a details of an installation Get(name string) (*Installation, error) // Upgrade applies a helm chart to a cluster. It's a lightweight wrapper around the helm 3 code Upgrade(name string, repository string, version string, values string) error IsUpgrade(comp *v1alpha1.WaveComponent, i *Installation) bool // Delete removes a helm release from a cluster. It's a lightweight wrapper around the helm 3 code Delete(name string, repository string, version string, values string) error }
Click to show internal directories.
Click to hide internal directories.