controllers

package
v0.0.0-...-b2eb650 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2022 License: Apache-2.0 Imports: 47 Imported by: 0

Documentation

Overview

Package controllers implements controllers.

Index

Constants

View Source
const (
	InstanceIDIndex = ".spec.instanceID"
)

InstanceIDIndex defines the kk machine controller's instance ID index.

Variables

This section is empty.

Functions

This section is empty.

Types

type KKClusterReconciler

type KKClusterReconciler struct {
	client.Client
	Recorder         record.EventRecorder
	Scheme           *runtime.Scheme
	WatchFilterValue string
	DataDir          string
}

KKClusterReconciler reconciles a KKCluster object

func (*KKClusterReconciler) Reconcile

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

func (*KKClusterReconciler) SetupWithManager

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

SetupWithManager sets up the controller with the Manager.

type KKInstanceReconciler

type KKInstanceReconciler struct {
	client.Client
	Scheme   *runtime.Scheme
	Recorder record.EventRecorder

	WatchFilterValue string
	DataDir          string

	WaitKKInstanceInterval time.Duration
	WaitKKInstanceTimeout  time.Duration
	// contains filtered or unexported fields
}

KKInstanceReconciler reconciles a KKInstance object

func (*KKInstanceReconciler) KKClusterToKKInstances

func (r *KKInstanceReconciler) KKClusterToKKInstances(log logr.Logger) handler.MapFunc

KKClusterToKKInstances is a handler.ToRequestsFunc to be used to enqeue requests for reconciliation of KKInstance.

func (*KKInstanceReconciler) KKMachineToKKInstanceMapFunc

func (r *KKInstanceReconciler) KKMachineToKKInstanceMapFunc(log logr.Logger) handler.MapFunc

KKMachineToKKInstanceMapFunc returns a handler.ToRequestsFunc that watches for KKMachine events and returns reconciliation requests for an KKInstance object.

func (*KKInstanceReconciler) Reconcile

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

func (*KKInstanceReconciler) SetupWithManager

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

SetupWithManager sets up the controller with the Manager.

type KKMachineReconciler

type KKMachineReconciler struct {
	client.Client
	Scheme           *runtime.Scheme
	Recorder         record.EventRecorder
	Tracker          *remote.ClusterCacheTracker
	WatchFilterValue string
	DataDir          string
}

KKMachineReconciler reconciles a KKMachine object

func (*KKMachineReconciler) KKClusterToKKMachines

func (r *KKMachineReconciler) KKClusterToKKMachines(log logr.Logger) handler.MapFunc

KKClusterToKKMachines is a handler.ToRequestsFunc to be used to enqeue requests for reconciliation of KKMachines.

func (*KKMachineReconciler) Reconcile

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

func (*KKMachineReconciler) SetupWithManager

func (r *KKMachineReconciler) 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