Help us shape the future of Go! Take the 2026 Go Developer Survey

applier

package
v1.5.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	StateNeedsInstall string = "NeedsInstall"
	StateNeedsUpgrade string = "NeedsUpgrade"
	StateUnchanged    string = "Unchanged"
	StateError        string = "Error"
)
View Source
const (
	AnnotationClusterExtensionWatchNamespace = "olm.operatorframework.io/watch-namespace"
)

Variables

This section is empty.

Functions

func GetWatchNamespace added in v1.2.0

func GetWatchNamespace(ext *ocv1.ClusterExtension) (string, error)

GetWatchNamespace determines the watch namespace the ClusterExtension should use Note: this is a temporary artifice to enable gated use of single/own namespace install modes for registry+v1 bundles. This will go away once the ClusterExtension API is updated to include (opaque) runtime configuration.

Types

type BundleToHelmChartConverter added in v1.3.0

type BundleToHelmChartConverter interface {
	ToHelmChart(bundle source.BundleSource, installNamespace string, config map[string]interface{}) (*chart.Chart, error)
}

type Helm

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

func (*Helm) Apply

func (h *Helm) Apply(ctx context.Context, contentFS fs.FS, ext *ocv1.ClusterExtension, objectLabels map[string]string, storageLabels 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