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 ¶
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 Helm ¶
type Helm struct {
ActionClientGetter helmclient.ActionClientGetter
Preflights []Preflight
PreAuthorizer authorization.PreAuthorizer
BundleToHelmChartConverter BundleToHelmChartConverter
}
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
Click to show internal directories.
Click to hide internal directories.