controllers

package
v0.7.1-rc.1 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2021 License: Apache-2.0 Imports: 30 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetupControllers

func SetupControllers(logger logr.Logger, mgr manager.Manager, options SetupOptions) error

SetupControllers starts all controllers (also used by e2e tests)

Types

type DatadogAgentReconciler

type DatadogAgentReconciler struct {
	client.Client
	VersionInfo *version.Info
	Log         logr.Logger
	Scheme      *runtime.Scheme
	Recorder    record.EventRecorder
	Options     datadogagent.ReconcilerOptions
	// contains filtered or unexported fields
}

DatadogAgentReconciler reconciles a DatadogAgent object.

func (*DatadogAgentReconciler) Reconcile

func (r *DatadogAgentReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)

Reconcile loop for DatadogAgent.

func (*DatadogAgentReconciler) SetupWithManager

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

SetupWithManager creates a new DatadogAgent controller.

type DatadogMonitorReconciler added in v0.6.0

type DatadogMonitorReconciler struct {
	Client      client.Client
	DDClient    datadogclient.DatadogClient
	VersionInfo *version.Info
	Log         logr.Logger
	Scheme      *runtime.Scheme
	Recorder    record.EventRecorder
	// contains filtered or unexported fields
}

DatadogMonitorReconciler reconciles a DatadogMonitor object.

func (*DatadogMonitorReconciler) Reconcile added in v0.6.0

Reconcile loop for DatadogMonitor.

func (*DatadogMonitorReconciler) SetupWithManager added in v0.6.0

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

SetupWithManager creates a new DatadogMonitor controller.

type SetupOptions added in v0.6.0

type SetupOptions struct {
	SupportExtendedDaemonset bool
	Creds                    config.Creds
	DatadogMonitorEnabled    bool
	OperatorMetricsEnabled   bool
}

SetupOptions defines options for setting up controllers to ease testing

Directories

Path Synopsis
testutils
Package testutils_test contains a set of unit-test helper functions to ease the creation of unit-test around the DatadogAgent CRD controller
Package testutils_test contains a set of unit-test helper functions to ease the creation of unit-test around the DatadogAgent CRD controller

Jump to

Keyboard shortcuts

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