datasources

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2026 License: Apache-2.0 Imports: 28 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PersesDatasourceReconciler

type PersesDatasourceReconciler struct {
	client.Client
	Scheme                *runtime.Scheme
	Recorder              record.EventRecorder
	ClientFactory         common.PersesClientFactory
	Metrics               *operatormetrics.Metrics
	ReconciliationTracker *operatormetrics.ReconciliationTracker
}

PersesDatasourceReconciler reconciles a PersesDatasource object

func (*PersesDatasourceReconciler) Reconcile

+kubebuilder:rbac:groups=perses.dev,resources=persesdatasources,verbs=get;list;watch;create;update;patch;delete +kubebuilder:rbac:groups=perses.dev,resources=persesdatasources/status,verbs=get;update;patch +kubebuilder:rbac:groups=perses.dev,resources=persesdatasources/finalizers,verbs=update +kubebuilder:rbac:groups="",resources=configmaps;secrets,verbs=watch;get

func (*PersesDatasourceReconciler) SetupWithManager

func (r *PersesDatasourceReconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager sets up the controller with the Manager. It watches PersesDatasource resources and also watches Perses instances to trigger re-reconciliation of all datasources when a Perses instance becomes available. Datasources are matched to Perses instances via instanceSelector labels. Create and delete events for Perses instances are ignored because the instance is not yet ready at creation, and deletion is handled by the datasource's own reconciliation loop.

Jump to

Keyboard shortcuts

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