controllers

package
v0.16.0 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2020 License: Apache-2.0 Imports: 12 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

This section is empty.

Types

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) RunTasks

RunTasks runs all the tasks associated with this reconciler

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
	Log    logr.Logger
	Scheme *runtime.Scheme
	Config config.Config
	Tasks  []Task
}

Params is the set of options to build a new openTelemetryCollectorReconciler

type Task

type Task struct {
	Name        string
	Do          func(context.Context, reconcile.Params) error
	BailOnError bool
}

Task represents a reconciliation task to be executed by the reconciler

Jump to

Keyboard shortcuts

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