controller

package
v0.34.12 Latest Latest
Warning

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

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

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 CustomResourceDefinitionDeletionReconciler

type CustomResourceDefinitionDeletionReconciler interface {
	ReconcileCustomResourceDefinitionDeletion(req reconcile.Request) error
}

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

type CustomResourceDefinitionEventHandler

type CustomResourceDefinitionEventHandler interface {
	CreateCustomResourceDefinition(obj *apiextensions_k8s_io_v1.CustomResourceDefinition) error
	UpdateCustomResourceDefinition(old, new *apiextensions_k8s_io_v1.CustomResourceDefinition) error
	DeleteCustomResourceDefinition(obj *apiextensions_k8s_io_v1.CustomResourceDefinition) error
	GenericCustomResourceDefinition(obj *apiextensions_k8s_io_v1.CustomResourceDefinition) error
}

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

type CustomResourceDefinitionEventHandlerFuncs

type CustomResourceDefinitionEventHandlerFuncs struct {
	OnCreate  func(obj *apiextensions_k8s_io_v1.CustomResourceDefinition) error
	OnUpdate  func(old, new *apiextensions_k8s_io_v1.CustomResourceDefinition) error
	OnDelete  func(obj *apiextensions_k8s_io_v1.CustomResourceDefinition) error
	OnGeneric func(obj *apiextensions_k8s_io_v1.CustomResourceDefinition) error
}

func (*CustomResourceDefinitionEventHandlerFuncs) CreateCustomResourceDefinition

func (*CustomResourceDefinitionEventHandlerFuncs) DeleteCustomResourceDefinition

func (*CustomResourceDefinitionEventHandlerFuncs) GenericCustomResourceDefinition

func (*CustomResourceDefinitionEventHandlerFuncs) UpdateCustomResourceDefinition

func (f *CustomResourceDefinitionEventHandlerFuncs) UpdateCustomResourceDefinition(objOld, objNew *apiextensions_k8s_io_v1.CustomResourceDefinition) error

type CustomResourceDefinitionEventWatcher

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

func NewCustomResourceDefinitionEventWatcher

func NewCustomResourceDefinitionEventWatcher(name string, mgr manager.Manager) CustomResourceDefinitionEventWatcher

type CustomResourceDefinitionFinalizer

type CustomResourceDefinitionFinalizer interface {
	CustomResourceDefinitionReconciler

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

	// finalize the object before it is deleted.
	// Watchers created with a finalizing handler will a
	FinalizeCustomResourceDefinition(obj *apiextensions_k8s_io_v1.CustomResourceDefinition) error
}

Reconcile and finalize the CustomResourceDefinition Resource implemented by the user

type CustomResourceDefinitionReconcileLoop

type CustomResourceDefinitionReconcileLoop interface {
	RunCustomResourceDefinitionReconciler(ctx context.Context, rec CustomResourceDefinitionReconciler, predicates ...predicate.Predicate) error
}

func NewCustomResourceDefinitionReconcileLoop

func NewCustomResourceDefinitionReconcileLoop(name string, mgr manager.Manager, options reconcile.Options) CustomResourceDefinitionReconcileLoop

type CustomResourceDefinitionReconciler

type CustomResourceDefinitionReconciler interface {
	ReconcileCustomResourceDefinition(obj *apiextensions_k8s_io_v1.CustomResourceDefinition) (reconcile.Result, error)
}

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

type CustomResourceDefinitionReconcilerFuncs

type CustomResourceDefinitionReconcilerFuncs struct {
	OnReconcileCustomResourceDefinition         func(obj *apiextensions_k8s_io_v1.CustomResourceDefinition) (reconcile.Result, error)
	OnReconcileCustomResourceDefinitionDeletion func(req reconcile.Request) error
}

func (*CustomResourceDefinitionReconcilerFuncs) ReconcileCustomResourceDefinition

func (*CustomResourceDefinitionReconcilerFuncs) ReconcileCustomResourceDefinitionDeletion

func (f *CustomResourceDefinitionReconcilerFuncs) ReconcileCustomResourceDefinitionDeletion(req reconcile.Request) error

type MulticlusterCustomResourceDefinitionDeletionReconciler

type MulticlusterCustomResourceDefinitionDeletionReconciler interface {
	ReconcileCustomResourceDefinitionDeletion(clusterName string, req reconcile.Request) error
}

Reconcile deletion events for the CustomResourceDefinition 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 MulticlusterCustomResourceDefinitionReconcileLoop

type MulticlusterCustomResourceDefinitionReconcileLoop interface {
	// AddMulticlusterCustomResourceDefinitionReconciler adds a MulticlusterCustomResourceDefinitionReconciler to the MulticlusterCustomResourceDefinitionReconcileLoop.
	AddMulticlusterCustomResourceDefinitionReconciler(ctx context.Context, rec MulticlusterCustomResourceDefinitionReconciler, predicates ...predicate.Predicate)
}

type MulticlusterCustomResourceDefinitionReconciler

type MulticlusterCustomResourceDefinitionReconciler interface {
	ReconcileCustomResourceDefinition(clusterName string, obj *apiextensions_k8s_io_v1.CustomResourceDefinition) (reconcile.Result, error)
}

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

type MulticlusterCustomResourceDefinitionReconcilerFuncs

type MulticlusterCustomResourceDefinitionReconcilerFuncs struct {
	OnReconcileCustomResourceDefinition         func(clusterName string, obj *apiextensions_k8s_io_v1.CustomResourceDefinition) (reconcile.Result, error)
	OnReconcileCustomResourceDefinitionDeletion func(clusterName string, req reconcile.Request) error
}

func (*MulticlusterCustomResourceDefinitionReconcilerFuncs) ReconcileCustomResourceDefinition

func (*MulticlusterCustomResourceDefinitionReconcilerFuncs) ReconcileCustomResourceDefinitionDeletion

func (f *MulticlusterCustomResourceDefinitionReconcilerFuncs) ReconcileCustomResourceDefinitionDeletion(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