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.
Click to show internal directories.
Click to hide internal directories.