applier

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	StateNeedsInstall string = "NeedsInstall"
	StateNeedsUpgrade string = "NeedsUpgrade"
	StateUnchanged    string = "Unchanged"
	StateError        string = "Error"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Helm

type Helm struct {
	ActionClientGetter helmclient.ActionClientGetter
	Preflights         []Preflight
}

func (*Helm) Apply

func (h *Helm) Apply(ctx context.Context, contentFS fs.FS, ext *ocv1alpha1.ClusterExtension, labels map[string]string) ([]client.Object, string, error)

type Preflight

type Preflight interface {
	// Install runs checks that should be successful prior
	// to installing the Helm release. It is provided
	// a Helm release and returns an error if the
	// check is unsuccessful
	Install(context.Context, *release.Release) error

	// Upgrade runs checks that should be successful prior
	// to upgrading the Helm release. It is provided
	// a Helm release and returns an error if the
	// check is unsuccessful
	Upgrade(context.Context, *release.Release) error
}

Preflight is a check that should be run before making any changes to the cluster

Jump to

Keyboard shortcuts

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