controllers

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2023 License: Apache-2.0 Imports: 41 Imported by: 0

Documentation

Overview

Package controllers contains k3s control plane controller.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type K3sControlPlaneReconciler

type K3sControlPlaneReconciler struct {
	client.Client
	Scheme    *runtime.Scheme
	APIReader client.Reader

	Tracker *remote.ClusterCacheTracker

	// WatchFilterValue is the label value used to filter events prior to reconciliation.
	WatchFilterValue string
	// contains filtered or unexported fields
}

K3sControlPlaneReconciler reconciles a K3sControlPlane object

func (*K3sControlPlaneReconciler) ClusterToK3sControlPlane

func (r *K3sControlPlaneReconciler) ClusterToK3sControlPlane(o client.Object) []ctrl.Request

ClusterToK3sControlPlane is a handler.ToRequestsFunc to be used to enqueue requests for reconciliation for K3sControlPlane based on updates to a Cluster.

func (*K3sControlPlaneReconciler) Reconcile

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

Reconcile handles K3sControlPlane events.

func (*K3sControlPlaneReconciler) SetupWithManager

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

SetupWithManager sets up the controller with the Manager.

Jump to

Keyboard shortcuts

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