reconciler

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: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// CatalogSourceLabelKey is the key for a label containing a CatalogSource name.
	CatalogSourceLabelKey string = "olm.catalogSource"
)
View Source
const (
	// ConfigMapRVLabelKey is the key for a label used to track the resource version of a related ConfigMap.
	ConfigMapRVLabelKey string = "olm.configMapResourceVersion"
)
View Source
const (
	// ConfigMapServerPostfix is a postfix appended to the names of resources generated for a ConfigMap server.
	ConfigMapServerPostfix string = "-configmap-server"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ConfigMapRegistryReconciler

type ConfigMapRegistryReconciler struct {
	Lister   operatorlister.OperatorLister
	OpClient operatorclient.ClientInterface
	Image    string
}

func (*ConfigMapRegistryReconciler) CheckRegistryServer

func (c *ConfigMapRegistryReconciler) CheckRegistryServer(catalogSource *v1alpha1.CatalogSource) (healthy bool, err error)

CheckRegistryServer returns true if the given CatalogSource is considered healthy; false otherwise.

func (*ConfigMapRegistryReconciler) EnsureRegistryServer

func (c *ConfigMapRegistryReconciler) EnsureRegistryServer(catalogSource *v1alpha1.CatalogSource) error

EnsureRegistryServer ensures that all components of registry server are up to date.

type GrpcAddressRegistryReconciler

type GrpcAddressRegistryReconciler struct{}

func (*GrpcAddressRegistryReconciler) CheckRegistryServer

func (g *GrpcAddressRegistryReconciler) CheckRegistryServer(catalogSource *v1alpha1.CatalogSource) (healthy bool, err error)

CheckRegistryServer returns true if the given CatalogSource is considered healthy; false otherwise.

func (*GrpcAddressRegistryReconciler) EnsureRegistryServer

func (g *GrpcAddressRegistryReconciler) EnsureRegistryServer(catalogSource *v1alpha1.CatalogSource) error

EnsureRegistryServer ensures a registry server exists for the given CatalogSource.

type GrpcRegistryReconciler

type GrpcRegistryReconciler struct {
	Lister   operatorlister.OperatorLister
	OpClient operatorclient.ClientInterface
}

func (*GrpcRegistryReconciler) CheckRegistryServer

func (c *GrpcRegistryReconciler) CheckRegistryServer(catalogSource *v1alpha1.CatalogSource) (healthy bool, err error)

CheckRegistryServer returns true if the given CatalogSource is considered healthy; false otherwise.

func (*GrpcRegistryReconciler) EnsureRegistryServer

func (c *GrpcRegistryReconciler) EnsureRegistryServer(catalogSource *v1alpha1.CatalogSource) error

EnsureRegistryServer ensures that all components of registry server are up to date.

type RegistryChecker

type RegistryChecker interface {
	// CheckRegistryServer returns true if the given CatalogSource is considered healthy; false otherwise.
	CheckRegistryServer(catalogSource *v1alpha1.CatalogSource) (healthy bool, err error)
}

RegistryChecker describes methods for checking a registry.

type RegistryEnsurer

type RegistryEnsurer interface {
	// EnsureRegistryServer ensures a registry server exists for the given CatalogSource.
	EnsureRegistryServer(catalogSource *v1alpha1.CatalogSource) error
}

RegistryEnsurer describes methods for ensuring a registry exists.

type RegistryReconciler

type RegistryReconciler interface {
	RegistryChecker
	RegistryEnsurer
}

RegistryReconciler knows how to reconcile a registry.

type RegistryReconcilerFactory

type RegistryReconcilerFactory interface {
	ReconcilerForSource(source *v1alpha1.CatalogSource) RegistryReconciler
}

RegistryReconcilerFactory describes factory methods for RegistryReconcilers.

func NewRegistryReconcilerFactory

func NewRegistryReconcilerFactory(lister operatorlister.OperatorLister, opClient operatorclient.ClientInterface, configMapServerImage string) RegistryReconcilerFactory

NewRegistryReconcilerFactory returns an initialized RegistryReconcilerFactory.

Jump to

Keyboard shortcuts

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