Documentation ¶
Index ¶
- type HelmTemplate
- func (h HelmTemplate) InstallOrUpgrade(chartLoc string, appDefinition *appskubermaticv1.ApplicationDefinition, ...) (util.StatusUpdater, error)
- func (h HelmTemplate) IsStuck(applicationInstallation *appskubermaticv1.ApplicationInstallation) (bool, error)
- func (h HelmTemplate) Rollback(applicationInstallation *appskubermaticv1.ApplicationInstallation) error
- func (h HelmTemplate) Uninstall(applicationInstallation *appskubermaticv1.ApplicationInstallation) (util.StatusUpdater, error)
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.
Click to show internal directories.
Click to hide internal directories.