csv

package
v0.30.0 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ReplaceFinder

type ReplaceFinder interface {
	IsBeingReplaced(in *v1alpha1.ClusterServiceVersion, csvsInNamespace map[string]*v1alpha1.ClusterServiceVersion) (replacedBy *v1alpha1.ClusterServiceVersion)
	IsReplacing(in *v1alpha1.ClusterServiceVersion) *v1alpha1.ClusterServiceVersion
	GetFinalCSVInReplacing(in *v1alpha1.ClusterServiceVersion, csvsInNamespace map[string]*v1alpha1.ClusterServiceVersion) (replacedBy *v1alpha1.ClusterServiceVersion)
}

ReplaceFinder is an interface that finds the next or previous ClusterServiceVersion object in the upgrade path for a given CSV.

func NewReplaceFinder

func NewReplaceFinder(logger *logrus.Logger, client versioned.Interface) ReplaceFinder

NewReplaceFinder returns an instance of ReplaceFinder

type SetGenerator

type SetGenerator interface {
	WithNamespace(namespace string, phase v1alpha1.ClusterServiceVersionPhase) map[string]*v1alpha1.ClusterServiceVersion
	WithNamespaceAndLabels(namespace string, phase v1alpha1.ClusterServiceVersionPhase, selector labels.Selector) map[string]*v1alpha1.ClusterServiceVersion
}

SetGenerator is an interface that returns a map of ClusterServiceVersion objects that match a certain set of criteria.

SetGenerator gathers all CSV(s) in the given namespace into a map keyed by CSV name; if metav1.NamespaceAll gets the set across all namespaces

func NewSetGenerator

func NewSetGenerator(logger *logrus.Logger, lister operatorlister.OperatorLister) SetGenerator

NewSetGenerator returns a new instance of SetGenerator.

type WatchNotification

type WatchNotification interface {
	// OnAddOrUpdate is invoked when a add or update reconciliation request has
	// been received by the operator.
	OnAddOrUpdate(in *v1alpha1.ClusterServiceVersion)

	// OnDelete is invoked when a delete reconciliation request has
	// been received by the operator.
	OnDelete(in *v1alpha1.ClusterServiceVersion)
}

WatchNotification is an sink interface that can be used to get notification of CSV reconciliation request(s) received by the operator.

Jump to

Keyboard shortcuts

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