controllers

package
v1.7.1 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: Apache-2.0 Imports: 31 Imported by: 0

Documentation

Overview

Package controllers implements the Docker controllers.

Package controllers implements controller functionality.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DockerClusterReconciler

type DockerClusterReconciler struct {
	client.Client
	ContainerRuntime container.Runtime

	// WatchFilterValue is the label value used to filter events prior to reconciliation.
	WatchFilterValue string
}

DockerClusterReconciler reconciles a DockerCluster object.

func (*DockerClusterReconciler) Reconcile

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

Reconcile reads that state of the cluster for a DockerCluster object and makes changes based on the state read and what is in the DockerCluster.Spec.

func (*DockerClusterReconciler) SetupWithManager

func (r *DockerClusterReconciler) SetupWithManager(ctx context.Context, mgr ctrl.Manager, options controller.Options) error

SetupWithManager will add watches for this controller.

type DockerMachineReconciler

type DockerMachineReconciler struct {
	client.Client
	ContainerRuntime container.Runtime
	Tracker          *remote.ClusterCacheTracker

	// WatchFilterValue is the label value used to filter events prior to reconciliation.
	WatchFilterValue string
}

DockerMachineReconciler reconciles a DockerMachine object.

func (*DockerMachineReconciler) DockerClusterToDockerMachines

func (r *DockerMachineReconciler) DockerClusterToDockerMachines(ctx context.Context, o client.Object) []ctrl.Request

DockerClusterToDockerMachines is a handler.ToRequestsFunc to be used to enqueue requests for reconciliation of DockerMachines.

func (*DockerMachineReconciler) Reconcile

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

Reconcile handles DockerMachine events.

func (*DockerMachineReconciler) SetupWithManager

func (r *DockerMachineReconciler) SetupWithManager(ctx context.Context, mgr ctrl.Manager, options controller.Options) error

SetupWithManager will add watches for this controller.

Jump to

Keyboard shortcuts

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