globaldatasources

package
v0.3.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PersesGlobalDatasourceReconciler

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

PersesGlobalDatasourceReconciler reconciles a PersesDatasource object

func (*PersesGlobalDatasourceReconciler) Reconcile

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

func (*PersesGlobalDatasourceReconciler) SetupWithManager

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

SetupWithManager sets up the controller with the Manager. It watches PersesGlobalDatasource resources and also watches Perses instances to trigger re-reconciliation of all global datasources when a Perses instance becomes available. Global 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 global datasource's own reconciliation loop.

Jump to

Keyboard shortcuts

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