backendconnection

package
v0.0.0-...-6bffeec Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2025 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BackendConnectionManager

type BackendConnectionManager struct {
	client.Client
	Clientset *kubernetes.Clientset
	*otelcolresources.OTelColResourceManager
	// contains filtered or unexported fields
}

func (*BackendConnectionManager) ReconcileOpenTelemetryCollector

func (m *BackendConnectionManager) ReconcileOpenTelemetryCollector(
	ctx context.Context,
	images util.Images,
	operatorNamespace string,
	triggeringMonitoringResource *dash0v1alpha1.Dash0Monitoring,
	trigger BackendConnectionReconcileTrigger,
) (error, bool)

ReconcileOpenTelemetryCollector can be triggered by a

  1. a reconcile request from the Dash0OperatorConfiguration resource.
  2. a reconcile request from a Dash0Monitoring resource in the cluster.
  3. a change event on one of the OpenTelemetry collector related resources that the operator manages (a change to one of "our" config maps or similar).

The parameter triggeringMonitoringResource is only != nil for case (2).

Returns a boolean flag indicating whether the reconciliation has been performed (true) or has been cancelled, due to another reconcliation already being in progress or because the resource has been deleted by the operator. A return value of (nil, true) does not necessarily indicate that any collector resource has been created, updated, or deleted; it only indicates that the reconciliation has been performed.

type BackendConnectionReconcileTrigger

type BackendConnectionReconcileTrigger string
const (
	TriggeredByWatchEvent             BackendConnectionReconcileTrigger = "watch"
	TriggeredByDash0ResourceReconcile BackendConnectionReconcileTrigger = "resource"
)

type BackendConnectionReconciler

type BackendConnectionReconciler struct {
	client.Client
	BackendConnectionManager *BackendConnectionManager
	Images                   util.Images
	OperatorNamespace        string
	OTelCollectorNamePrefix  string
}

func (*BackendConnectionReconciler) Reconcile

func (*BackendConnectionReconciler) SetupWithManager

func (r *BackendConnectionReconciler) 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