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
- a reconcile request from the Dash0OperatorConfiguration resource.
- a reconcile request from a Dash0Monitoring resource in the cluster.
- 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) SetupWithManager ¶
func (r *BackendConnectionReconciler) SetupWithManager(mgr ctrl.Manager) error
Click to show internal directories.
Click to hide internal directories.