controller

package
v0.22.2 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2022 License: Apache-2.0 Imports: 11 Imported by: 1

Documentation

Overview

Definitions for the Kubernetes Controllers

Definitions for the multicluster Kubernetes Controllers

Definitions for the Kubernetes Controllers

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KubernetesClusterDeletionReconciler

type KubernetesClusterDeletionReconciler interface {
	ReconcileKubernetesClusterDeletion(req reconcile.Request) error
}

Reconcile deletion events for the KubernetesCluster Resource. Deletion receives a reconcile.Request as we cannot guarantee the last state of the object before being deleted. implemented by the user

type KubernetesClusterEventHandler

type KubernetesClusterEventHandler interface {
	CreateKubernetesCluster(obj *multicluster_solo_io_v1alpha1.KubernetesCluster) error
	UpdateKubernetesCluster(old, new *multicluster_solo_io_v1alpha1.KubernetesCluster) error
	DeleteKubernetesCluster(obj *multicluster_solo_io_v1alpha1.KubernetesCluster) error
	GenericKubernetesCluster(obj *multicluster_solo_io_v1alpha1.KubernetesCluster) error
}

Handle events for the KubernetesCluster Resource DEPRECATED: Prefer reconciler pattern.

type KubernetesClusterEventHandlerFuncs

type KubernetesClusterEventHandlerFuncs struct {
	OnCreate  func(obj *multicluster_solo_io_v1alpha1.KubernetesCluster) error
	OnUpdate  func(old, new *multicluster_solo_io_v1alpha1.KubernetesCluster) error
	OnDelete  func(obj *multicluster_solo_io_v1alpha1.KubernetesCluster) error
	OnGeneric func(obj *multicluster_solo_io_v1alpha1.KubernetesCluster) error
}

func (*KubernetesClusterEventHandlerFuncs) CreateKubernetesCluster

func (*KubernetesClusterEventHandlerFuncs) DeleteKubernetesCluster

func (*KubernetesClusterEventHandlerFuncs) GenericKubernetesCluster

func (*KubernetesClusterEventHandlerFuncs) UpdateKubernetesCluster

type KubernetesClusterEventWatcher

type KubernetesClusterEventWatcher interface {
	AddEventHandler(ctx context.Context, h KubernetesClusterEventHandler, predicates ...predicate.Predicate) error
}

func NewKubernetesClusterEventWatcher

func NewKubernetesClusterEventWatcher(name string, mgr manager.Manager) KubernetesClusterEventWatcher

type KubernetesClusterFinalizer

type KubernetesClusterFinalizer interface {
	KubernetesClusterReconciler

	// name of the finalizer used by this handler.
	// finalizer names should be unique for a single task
	KubernetesClusterFinalizerName() string

	// finalize the object before it is deleted.
	// Watchers created with a finalizing handler will a
	FinalizeKubernetesCluster(obj *multicluster_solo_io_v1alpha1.KubernetesCluster) error
}

Reconcile and finalize the KubernetesCluster Resource implemented by the user

type KubernetesClusterReconcileLoop

type KubernetesClusterReconcileLoop interface {
	RunKubernetesClusterReconciler(ctx context.Context, rec KubernetesClusterReconciler, predicates ...predicate.Predicate) error
}

func NewKubernetesClusterReconcileLoop

func NewKubernetesClusterReconcileLoop(name string, mgr manager.Manager, options reconcile.Options) KubernetesClusterReconcileLoop

type KubernetesClusterReconciler

type KubernetesClusterReconciler interface {
	ReconcileKubernetesCluster(obj *multicluster_solo_io_v1alpha1.KubernetesCluster) (reconcile.Result, error)
}

Reconcile Upsert events for the KubernetesCluster Resource. implemented by the user

type KubernetesClusterReconcilerFuncs

type KubernetesClusterReconcilerFuncs struct {
	OnReconcileKubernetesCluster         func(obj *multicluster_solo_io_v1alpha1.KubernetesCluster) (reconcile.Result, error)
	OnReconcileKubernetesClusterDeletion func(req reconcile.Request) error
}

func (*KubernetesClusterReconcilerFuncs) ReconcileKubernetesCluster

func (*KubernetesClusterReconcilerFuncs) ReconcileKubernetesClusterDeletion

func (f *KubernetesClusterReconcilerFuncs) ReconcileKubernetesClusterDeletion(req reconcile.Request) error

type MulticlusterKubernetesClusterDeletionReconciler

type MulticlusterKubernetesClusterDeletionReconciler interface {
	ReconcileKubernetesClusterDeletion(clusterName string, req reconcile.Request) error
}

Reconcile deletion events for the KubernetesCluster Resource across clusters. Deletion receives a reconcile.Request as we cannot guarantee the last state of the object before being deleted. implemented by the user

type MulticlusterKubernetesClusterReconcileLoop

type MulticlusterKubernetesClusterReconcileLoop interface {
	// AddMulticlusterKubernetesClusterReconciler adds a MulticlusterKubernetesClusterReconciler to the MulticlusterKubernetesClusterReconcileLoop.
	AddMulticlusterKubernetesClusterReconciler(ctx context.Context, rec MulticlusterKubernetesClusterReconciler, predicates ...predicate.Predicate)
}

type MulticlusterKubernetesClusterReconciler

type MulticlusterKubernetesClusterReconciler interface {
	ReconcileKubernetesCluster(clusterName string, obj *multicluster_solo_io_v1alpha1.KubernetesCluster) (reconcile.Result, error)
}

Reconcile Upsert events for the KubernetesCluster Resource across clusters. implemented by the user

type MulticlusterKubernetesClusterReconcilerFuncs

type MulticlusterKubernetesClusterReconcilerFuncs struct {
	OnReconcileKubernetesCluster         func(clusterName string, obj *multicluster_solo_io_v1alpha1.KubernetesCluster) (reconcile.Result, error)
	OnReconcileKubernetesClusterDeletion func(clusterName string, req reconcile.Request) error
}

func (*MulticlusterKubernetesClusterReconcilerFuncs) ReconcileKubernetesCluster

func (*MulticlusterKubernetesClusterReconcilerFuncs) ReconcileKubernetesClusterDeletion

func (f *MulticlusterKubernetesClusterReconcilerFuncs) ReconcileKubernetesClusterDeletion(clusterName string, req reconcile.Request) error

Directories

Path Synopsis
Package mock_controller is a generated GoMock package.
Package mock_controller is a generated GoMock package.

Jump to

Keyboard shortcuts

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