eventsource

package
v0.0.0-...-0145ae5 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2024 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PrometheusReconciler

type PrometheusReconciler struct {
	reconciler.ReconcilerBase
	Producers manager.Manager[producer.KeyedEventProducer]

	Log logr.Logger
	// contains filtered or unexported fields
}

PrometheusReconciler reconciles a Prometheus object

func (*PrometheusReconciler) HandleErrorAndRequeue

func (r *PrometheusReconciler) HandleErrorAndRequeue(ctx context.Context, objectMeta metav1.ObjectMeta, err error, requeueAfter time.Duration) (ctrl.Result, error)

func (*PrometheusReconciler) HandleSuccess

func (r *PrometheusReconciler) HandleSuccess(ctx context.Context, objectMeta metav1.ObjectMeta) (ctrl.Result, error)

func (*PrometheusReconciler) MarkInitializing

func (r *PrometheusReconciler) MarkInitializing(ctx context.Context, es *v1alpha1.Prometheus) error

MarkInitializing mark this event source with the transient initializing state

func (*PrometheusReconciler) Reconcile

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

Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state.

For more details, check Reconcile and its Result here: - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.13.0/pkg/reconcile

func (*PrometheusReconciler) SetupWithManager

func (r *PrometheusReconciler) SetupWithManager(mgr ctrl.Manager, bus *eventbus.EventBus) error

SetupWithManager sets up the controller with the Manager.

Jump to

Keyboard shortcuts

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