csv

package
v0.10.1-1 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2022 License: Apache-2.0 Imports: 6 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
}

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
}

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.

Jump to

Keyboard shortcuts

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