controllers

package
v1.0.3 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AmazonCloudWatchAgentReconciler

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

AmazonCloudWatchAgentReconciler reconciles a AmazonCloudWatchAgent object.

func NewReconciler

func NewReconciler(p Params) *AmazonCloudWatchAgentReconciler

NewReconciler creates a new reconciler for AmazonCloudWatchAgent objects.

func (*AmazonCloudWatchAgentReconciler) Reconcile

Reconcile the current state of an Amazon CloudWatch Agent resource with the desired state.

func (*AmazonCloudWatchAgentReconciler) RunTasks

RunTasks runs all the tasks associated with this reconciler.

func (*AmazonCloudWatchAgentReconciler) SetupWithManager

func (r *AmazonCloudWatchAgentReconciler) 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
	Tasks    []Task
	Config   config.Config
}

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

type Task

type Task struct {
	Do          func(context.Context, reconcile.Params) error
	Name        string
	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