addon

package
v1.7.1 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2023 License: Apache-2.0 Imports: 40 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const ADDON_INSTANCE_RECONCILER_NAME = "addonInstanceReconciler"
View Source
const MONITORING_FEDERATION_RECONCILER_NAME = "monitoringFederationReconciler"
View Source
const MONITORING_STACK_RECONCILER_NAME = "monitoringStackReconciler"
View Source
const NAMESPACE_RECONCILER_NAME = "namespaceReconciler"
View Source
const OLM_RECONCILER_NAME = "olmReconciler"
View Source
const SECRET_RECONCILER_NAME = "secretPropogationReconciler"

Variables

This section is empty.

Functions

func CatalogSourceName added in v1.4.0

func CatalogSourceName(addon *addonsv1alpha1.Addon) string

func GetCommonInstallOptions added in v1.7.0

func GetCommonInstallOptions(addon *addonsv1alpha1.Addon) (commonInstallOptions addonsv1alpha1.AddonInstallOLMCommon)

func GetMonitoringFederationServiceMonitorEndpoints added in v0.7.0

func GetMonitoringFederationServiceMonitorEndpoints(addon *addonsv1alpha1.Addon) []monitoringv1.Endpoint

GetMonitoringFederationServiceMonitorEndpoints generates a slice of monitoringv1.Endpoint instances from an addon's Monitoring.Federation specification.

func GetMonitoringFederationServiceMonitorName added in v0.7.0

func GetMonitoringFederationServiceMonitorName(addon *addonsv1alpha1.Addon) string

Helper function to compute monitoring federation ServiceMonitor name from addon object

func GetMonitoringNamespaceName added in v0.7.0

func GetMonitoringNamespaceName(addon *addonsv1alpha1.Addon) string

Helper function to compute monitoring Namespace name from addon object

func HasAdditionalCatalogSources added in v1.3.0

func HasAdditionalCatalogSources(addon *addonsv1alpha1.Addon) bool

HasAdditionalCatalogSources determines whether the passed addon's spec contains additional catalog sources

func HasMonitoringFederation added in v0.7.0

func HasMonitoringFederation(addon *addonsv1alpha1.Addon) bool

HasMonitoringFederation is a helper to determine if a given addon's spec defines a Monitoring.Federation.

func HasMonitoringStack added in v1.7.1

func HasMonitoringStack(addon *addonsv1alpha1.Addon) bool

HasMonitoringStack is a helper to determine if a given addon's spec defines a Monitoring.Stack.

func HashCurrentAddonStatus added in v1.7.0

func HashCurrentAddonStatus(addon *addonsv1alpha1.Addon) string

func OCMAddOnStatusDifferentFromInClusterAddonStatus added in v1.7.0

func OCMAddOnStatusDifferentFromInClusterAddonStatus(in ocm.AddOnStatusResponse, addon *addonsv1alpha1.Addon) bool

func SubscriptionName added in v1.4.0

func SubscriptionName(addon *addonsv1alpha1.Addon) string

Types

type AddonReconciler

type AddonReconciler struct {
	client.Client
	Log               logr.Logger
	Scheme            *runtime.Scheme
	Recorder          *metrics.Recorder
	UncachedClient    client.Client
	ClusterExternalID string
	// Namespace the AddonOperator is deployed into
	AddonOperatorNamespace string
	// contains filtered or unexported fields
}

func NewAddonReconciler added in v1.3.0

func NewAddonReconciler(
	client client.Client,
	uncachedClient client.Client,
	log logr.Logger,
	scheme *runtime.Scheme,
	recorder *metrics.Recorder,
	clusterExternalID string,
	addonOperatorNamespace string,
	enableStatusReporting bool,
	opts ...AddonReconcilerOptions,
) *AddonReconciler

func (*AddonReconciler) DisableGlobalPause

func (r *AddonReconciler) DisableGlobalPause(ctx context.Context) error

Unpauses reconcilation of all Addon objects. Concurrency safe.

func (*AddonReconciler) EnableGlobalPause

func (r *AddonReconciler) EnableGlobalPause(ctx context.Context) error

Pauses reconcilation of all Addon objects. Concurrency safe.

func (*AddonReconciler) InjectOCMClient added in v0.7.0

func (r *AddonReconciler) InjectOCMClient(ctx context.Context, c *ocm.Client) error

func (*AddonReconciler) Reconcile

func (r *AddonReconciler) Reconcile(
	ctx context.Context, req ctrl.Request) (res ctrl.Result, err error)

AddonReconciler/Controller entrypoint

func (*AddonReconciler) SetupWithManager

func (r *AddonReconciler) SetupWithManager(mgr ctrl.Manager, opts ...AddonReconcilerOptions) error

type AddonReconcilerOptions added in v1.7.0

type AddonReconcilerOptions interface {
	ApplyToAddonReconciler(config *AddonReconciler)
	ApplyToControllerBuilder(b *builder.Builder)
}

type NamespaceOpts added in v1.5.0

type NamespaceOpts func(*corev1.Namespace)

func WithNamespaceAnnotations added in v1.5.0

func WithNamespaceAnnotations(annotations map[string]string) NamespaceOpts

func WithNamespaceLabels added in v1.5.0

func WithNamespaceLabels(labels map[string]string) NamespaceOpts

type WithMonitoringStackReconciler added in v1.7.0

type WithMonitoringStackReconciler struct {
	Client client.Client
	Scheme *runtime.Scheme
}

func (WithMonitoringStackReconciler) ApplyToAddonReconciler added in v1.7.0

func (w WithMonitoringStackReconciler) ApplyToAddonReconciler(config *AddonReconciler)

func (WithMonitoringStackReconciler) ApplyToControllerBuilder added in v1.7.0

func (w WithMonitoringStackReconciler) ApplyToControllerBuilder(b *builder.Builder)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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