template

package
v2.26.1 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2024 License: Apache-2.0 Imports: 12 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

	// 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, appDefinition *appskubermaticv1.ApplicationDefinition, applicationInstallation *appskubermaticv1.ApplicationInstallation) (util.StatusUpdater, error)

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

func (HelmTemplate) IsStuck added in v2.24.9

func (h HelmTemplate) IsStuck(applicationInstallation *appskubermaticv1.ApplicationInstallation) (bool, error)

IsStuck aims to identify if a helm release is stuck. This targets an upstream issue in helm, which has not been resolved. For further details see: - https://github.com/helm/helm/issues/7476 - https://github.com/helm/helm/issues/4558

func (HelmTemplate) Rollback added in v2.24.9

func (h HelmTemplate) Rollback(applicationInstallation *appskubermaticv1.ApplicationInstallation) error

Rollback rolls an Application back to the previous release.

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