addon

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2022 License: Apache-2.0 Imports: 29 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

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 HasAdoptAllStrategy added in v0.7.0

func HasAdoptAllStrategy(addon *addonsv1alpha1.Addon) bool

HasAdoptAllStrategy returns true if a given addon has the AdoptAll ResourceAdoptionStrategy.

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.

Types

type AddonReconciler

type AddonReconciler struct {
	client.Client
	Log      logr.Logger
	Scheme   *runtime.Scheme
	Recorder *metrics.Recorder

	ClusterExternalID string
	// contains filtered or unexported fields
}

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) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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