deployer

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2024 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrInstallFailed = errors.New("install failed")

ErrInstallFailed when the Helm chart installation fails.

View Source
var ErrUpgradeFailed = errors.New("upgrade failed")

ErrUpgradeFailed when the Helm chart upgrade fails.

Functions

func EnsureOpenShiftProject

func EnsureOpenShiftProject(
	logger *slog.Logger,
	kube *k8s.Kube,
	projectName string,
) error

Types

type Helm

type Helm struct {
	// contains filtered or unexported fields
}

Helm represents the Helm support for the installer. It's responsible for running the Helm related actions.

func NewHelm

func NewHelm(
	logger *slog.Logger,
	f *flags.Flags,
	kube *k8s.Kube,
	namespace string,
	chart *chart.Chart,
) (*Helm, error)

NewHelm creates a new Helm instance, setting up the Helm action configuration to be used on subsequent interactions. The Helm instance is bound to a single Helm Chart.

func (*Helm) Deploy

func (h *Helm) Deploy(vals chartutil.Values) error

Deploy deploys the Helm chart (Dependency) on the cluster. It checks if the release is already installed in order to use the proper helm-client (action).

func (*Helm) Verify

func (h *Helm) Verify() error

Verify equivalent to "helm test", it checks whether the release is correctly deployed by running chart tests and waiting for successful result.

func (*Helm) VisitReleaseResources

func (h *Helm) VisitReleaseResources(
	ctx context.Context,
	m monitor.Interface,
) error

VisitReleaseResources collects the resources created by the Helm chart release.

Jump to

Keyboard shortcuts

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