Documentation ¶
Index ¶
Constants ¶
const ( // CatalogSourceLabelKey is the key for a label containing a CatalogSource name. CatalogSourceLabelKey string = "olm.catalogSource" )
const ( // ConfigMapRVLabelKey is the key for a label used to track the resource version of a related ConfigMap. ConfigMapRVLabelKey string = "olm.configMapResourceVersion" )
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.