template

package
v2.21.11 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2023 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HelmTemplate

type HelmTemplate struct {
	Ctx context.Context

	// Kubeconfig of the user-cluster.
	Kubeconfig string

	// CacheDir is the directory path where helm caches will be download.
	CacheDir string

	Log                     *zap.SugaredLogger
	ApplicationInstallation *appskubermaticv1.ApplicationInstallation

	// Namespace where credential secrets are stored.
	SecretNamespace string

	// SeedClient to seed cluster.
	SeedClient ctrlruntimeclient.Client
}

HelmTemplate install upgrade or uninstall helm chart into cluster.

func (HelmTemplate) InstallOrUpgrade

func (h HelmTemplate) InstallOrUpgrade(chartLoc string, applicationInstallation *appskubermaticv1.ApplicationInstallation) (util.StatusUpdater, error)

InstallOrUpgrade the chart located at chartLoc with parameters (releaseName, values) defined applicationInstallation into cluster.

func (HelmTemplate) Uninstall

func (h HelmTemplate) Uninstall(applicationInstallation *appskubermaticv1.ApplicationInstallation) (util.StatusUpdater, error)

Uninstall the chart from the user cluster.

Jump to

Keyboard shortcuts

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