controllers

package
v0.106.0 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2024 License: Apache-2.0 Imports: 39 Imported by: 0

Documentation

Overview

Package controllers contains the main controller, where the reconciliation starts.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildCollector added in v0.86.0

func BuildCollector(params manifests.Params) ([]client.Object, error)

BuildCollector returns the generation and collected errors of all manifests for a given instance.

func BuildOpAMPBridge added in v0.88.0

func BuildOpAMPBridge(params manifests.Params) ([]client.Object, error)

BuildOpAMPBridge returns the generation and collected errors of all manifests for a given instance.

func BuildTargetAllocator added in v0.103.0

func BuildTargetAllocator(params targetallocator.Params) ([]client.Object, error)

BuildTargetAllocator returns the generation and collected errors of all manifests for a given instance.

Types

type OpAMPBridgeReconciler added in v0.88.0

type OpAMPBridgeReconciler struct {
	client.Client
	// contains filtered or unexported fields
}

OpAMPBridgeReconciler reconciles a OpAMPBridge object.

func NewOpAMPBridgeReconciler added in v0.88.0

func NewOpAMPBridgeReconciler(params OpAMPBridgeReconcilerParams) *OpAMPBridgeReconciler

func (*OpAMPBridgeReconciler) Reconcile added in v0.88.0

func (r *OpAMPBridgeReconciler) 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.11.2/pkg/reconcile

func (*OpAMPBridgeReconciler) SetupWithManager added in v0.88.0

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

SetupWithManager sets up the controller with the Manager.

type OpAMPBridgeReconcilerParams added in v0.88.0

type OpAMPBridgeReconcilerParams struct {
	client.Client
	Recorder record.EventRecorder
	Scheme   *runtime.Scheme
	Log      logr.Logger
	Config   config.Config
}

OpAMPBridgeReconcilerParams is the set of options to build a new OpAMPBridgeReconciler.

type OpenTelemetryCollectorReconciler

type OpenTelemetryCollectorReconciler struct {
	client.Client
	// contains filtered or unexported fields
}

OpenTelemetryCollectorReconciler reconciles a OpenTelemetryCollector object.

func NewReconciler

func NewReconciler(p Params) *OpenTelemetryCollectorReconciler

NewReconciler creates a new reconciler for OpenTelemetryCollector objects.

func (*OpenTelemetryCollectorReconciler) Reconcile

Reconcile the current state of an OpenTelemetry collector resource with the desired state.

func (*OpenTelemetryCollectorReconciler) SetupWithManager

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

SetupWithManager tells the manager what our controller is interested in.

type Params

type Params struct {
	client.Client
	Recorder record.EventRecorder
	Scheme   *runtime.Scheme
	Log      logr.Logger
	Config   config.Config
}

Params is the set of options to build a new OpenTelemetryCollectorReconciler.

Jump to

Keyboard shortcuts

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