controller

package
v0.38.6 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 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 MulticlusterNamespaceDeletionReconciler

type MulticlusterNamespaceDeletionReconciler interface {
	ReconcileNamespaceDeletion(clusterName string, req reconcile.Request) error
}

Reconcile deletion events for the Namespace 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 MulticlusterNamespaceReconcileLoop

type MulticlusterNamespaceReconcileLoop interface {
	// AddMulticlusterNamespaceReconciler adds a MulticlusterNamespaceReconciler to the MulticlusterNamespaceReconcileLoop.
	AddMulticlusterNamespaceReconciler(ctx context.Context, rec MulticlusterNamespaceReconciler, predicates ...predicate.Predicate)
}

type MulticlusterNamespaceReconciler

type MulticlusterNamespaceReconciler interface {
	ReconcileNamespace(clusterName string, obj *v1.Namespace) (reconcile.Result, error)
}

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

type MulticlusterNamespaceReconcilerFuncs

type MulticlusterNamespaceReconcilerFuncs struct {
	OnReconcileNamespace         func(clusterName string, obj *v1.Namespace) (reconcile.Result, error)
	OnReconcileNamespaceDeletion func(clusterName string, req reconcile.Request) error
}

func (*MulticlusterNamespaceReconcilerFuncs) ReconcileNamespace

func (f *MulticlusterNamespaceReconcilerFuncs) ReconcileNamespace(clusterName string, obj *v1.Namespace) (reconcile.Result, error)

func (*MulticlusterNamespaceReconcilerFuncs) ReconcileNamespaceDeletion

func (f *MulticlusterNamespaceReconcilerFuncs) ReconcileNamespaceDeletion(clusterName string, req reconcile.Request) error

type MulticlusterSecretDeletionReconciler

type MulticlusterSecretDeletionReconciler interface {
	ReconcileSecretDeletion(clusterName string, req reconcile.Request) error
}

Reconcile deletion events for the Secret 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 MulticlusterSecretReconcileLoop

type MulticlusterSecretReconcileLoop interface {
	// AddMulticlusterSecretReconciler adds a MulticlusterSecretReconciler to the MulticlusterSecretReconcileLoop.
	AddMulticlusterSecretReconciler(ctx context.Context, rec MulticlusterSecretReconciler, predicates ...predicate.Predicate)
}

type MulticlusterSecretReconciler

type MulticlusterSecretReconciler interface {
	ReconcileSecret(clusterName string, obj *v1.Secret) (reconcile.Result, error)
}

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

type MulticlusterSecretReconcilerFuncs

type MulticlusterSecretReconcilerFuncs struct {
	OnReconcileSecret         func(clusterName string, obj *v1.Secret) (reconcile.Result, error)
	OnReconcileSecretDeletion func(clusterName string, req reconcile.Request) error
}

func (*MulticlusterSecretReconcilerFuncs) ReconcileSecret

func (f *MulticlusterSecretReconcilerFuncs) ReconcileSecret(clusterName string, obj *v1.Secret) (reconcile.Result, error)

func (*MulticlusterSecretReconcilerFuncs) ReconcileSecretDeletion

func (f *MulticlusterSecretReconcilerFuncs) ReconcileSecretDeletion(clusterName string, req reconcile.Request) error

type MulticlusterServiceAccountDeletionReconciler

type MulticlusterServiceAccountDeletionReconciler interface {
	ReconcileServiceAccountDeletion(clusterName string, req reconcile.Request) error
}

Reconcile deletion events for the ServiceAccount 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 MulticlusterServiceAccountReconcileLoop

type MulticlusterServiceAccountReconcileLoop interface {
	// AddMulticlusterServiceAccountReconciler adds a MulticlusterServiceAccountReconciler to the MulticlusterServiceAccountReconcileLoop.
	AddMulticlusterServiceAccountReconciler(ctx context.Context, rec MulticlusterServiceAccountReconciler, predicates ...predicate.Predicate)
}

type MulticlusterServiceAccountReconciler

type MulticlusterServiceAccountReconciler interface {
	ReconcileServiceAccount(clusterName string, obj *v1.ServiceAccount) (reconcile.Result, error)
}

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

type MulticlusterServiceAccountReconcilerFuncs

type MulticlusterServiceAccountReconcilerFuncs struct {
	OnReconcileServiceAccount         func(clusterName string, obj *v1.ServiceAccount) (reconcile.Result, error)
	OnReconcileServiceAccountDeletion func(clusterName string, req reconcile.Request) error
}

func (*MulticlusterServiceAccountReconcilerFuncs) ReconcileServiceAccount

func (f *MulticlusterServiceAccountReconcilerFuncs) ReconcileServiceAccount(clusterName string, obj *v1.ServiceAccount) (reconcile.Result, error)

func (*MulticlusterServiceAccountReconcilerFuncs) ReconcileServiceAccountDeletion

func (f *MulticlusterServiceAccountReconcilerFuncs) ReconcileServiceAccountDeletion(clusterName string, req reconcile.Request) error

type NamespaceDeletionReconciler

type NamespaceDeletionReconciler interface {
	ReconcileNamespaceDeletion(req reconcile.Request) error
}

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

type NamespaceEventHandler

type NamespaceEventHandler interface {
	CreateNamespace(obj *v1.Namespace) error
	UpdateNamespace(old, new *v1.Namespace) error
	DeleteNamespace(obj *v1.Namespace) error
	GenericNamespace(obj *v1.Namespace) error
}

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

type NamespaceEventHandlerFuncs

type NamespaceEventHandlerFuncs struct {
	OnCreate  func(obj *v1.Namespace) error
	OnUpdate  func(old, new *v1.Namespace) error
	OnDelete  func(obj *v1.Namespace) error
	OnGeneric func(obj *v1.Namespace) error
}

func (*NamespaceEventHandlerFuncs) CreateNamespace

func (f *NamespaceEventHandlerFuncs) CreateNamespace(obj *v1.Namespace) error

func (*NamespaceEventHandlerFuncs) DeleteNamespace

func (f *NamespaceEventHandlerFuncs) DeleteNamespace(obj *v1.Namespace) error

func (*NamespaceEventHandlerFuncs) GenericNamespace

func (f *NamespaceEventHandlerFuncs) GenericNamespace(obj *v1.Namespace) error

func (*NamespaceEventHandlerFuncs) UpdateNamespace

func (f *NamespaceEventHandlerFuncs) UpdateNamespace(objOld, objNew *v1.Namespace) error

type NamespaceEventWatcher

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

func NewNamespaceEventWatcher

func NewNamespaceEventWatcher(name string, mgr manager.Manager) NamespaceEventWatcher

type NamespaceFinalizer

type NamespaceFinalizer interface {
	NamespaceReconciler

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

	// finalize the object before it is deleted.
	// Watchers created with a finalizing handler will a
	FinalizeNamespace(obj *v1.Namespace) error
}

Reconcile and finalize the Namespace Resource implemented by the user

type NamespaceReconcileLoop

type NamespaceReconcileLoop interface {
	RunNamespaceReconciler(ctx context.Context, rec NamespaceReconciler, predicates ...predicate.Predicate) error
}

func NewNamespaceReconcileLoop

func NewNamespaceReconcileLoop(name string, mgr manager.Manager, options reconcile.Options) NamespaceReconcileLoop

type NamespaceReconciler

type NamespaceReconciler interface {
	ReconcileNamespace(obj *v1.Namespace) (reconcile.Result, error)
}

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

type NamespaceReconcilerFuncs

type NamespaceReconcilerFuncs struct {
	OnReconcileNamespace         func(obj *v1.Namespace) (reconcile.Result, error)
	OnReconcileNamespaceDeletion func(req reconcile.Request) error
}

func (*NamespaceReconcilerFuncs) ReconcileNamespace

func (f *NamespaceReconcilerFuncs) ReconcileNamespace(obj *v1.Namespace) (reconcile.Result, error)

func (*NamespaceReconcilerFuncs) ReconcileNamespaceDeletion

func (f *NamespaceReconcilerFuncs) ReconcileNamespaceDeletion(req reconcile.Request) error

type SecretDeletionReconciler

type SecretDeletionReconciler interface {
	ReconcileSecretDeletion(req reconcile.Request) error
}

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

type SecretEventHandler

type SecretEventHandler interface {
	CreateSecret(obj *v1.Secret) error
	UpdateSecret(old, new *v1.Secret) error
	DeleteSecret(obj *v1.Secret) error
	GenericSecret(obj *v1.Secret) error
}

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

type SecretEventHandlerFuncs

type SecretEventHandlerFuncs struct {
	OnCreate  func(obj *v1.Secret) error
	OnUpdate  func(old, new *v1.Secret) error
	OnDelete  func(obj *v1.Secret) error
	OnGeneric func(obj *v1.Secret) error
}

func (*SecretEventHandlerFuncs) CreateSecret

func (f *SecretEventHandlerFuncs) CreateSecret(obj *v1.Secret) error

func (*SecretEventHandlerFuncs) DeleteSecret

func (f *SecretEventHandlerFuncs) DeleteSecret(obj *v1.Secret) error

func (*SecretEventHandlerFuncs) GenericSecret

func (f *SecretEventHandlerFuncs) GenericSecret(obj *v1.Secret) error

func (*SecretEventHandlerFuncs) UpdateSecret

func (f *SecretEventHandlerFuncs) UpdateSecret(objOld, objNew *v1.Secret) error

type SecretEventWatcher

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

func NewSecretEventWatcher

func NewSecretEventWatcher(name string, mgr manager.Manager) SecretEventWatcher

type SecretFinalizer

type SecretFinalizer interface {
	SecretReconciler

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

	// finalize the object before it is deleted.
	// Watchers created with a finalizing handler will a
	FinalizeSecret(obj *v1.Secret) error
}

Reconcile and finalize the Secret Resource implemented by the user

type SecretReconcileLoop

type SecretReconcileLoop interface {
	RunSecretReconciler(ctx context.Context, rec SecretReconciler, predicates ...predicate.Predicate) error
}

func NewSecretReconcileLoop

func NewSecretReconcileLoop(name string, mgr manager.Manager, options reconcile.Options) SecretReconcileLoop

type SecretReconciler

type SecretReconciler interface {
	ReconcileSecret(obj *v1.Secret) (reconcile.Result, error)
}

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

type SecretReconcilerFuncs

type SecretReconcilerFuncs struct {
	OnReconcileSecret         func(obj *v1.Secret) (reconcile.Result, error)
	OnReconcileSecretDeletion func(req reconcile.Request) error
}

func (*SecretReconcilerFuncs) ReconcileSecret

func (f *SecretReconcilerFuncs) ReconcileSecret(obj *v1.Secret) (reconcile.Result, error)

func (*SecretReconcilerFuncs) ReconcileSecretDeletion

func (f *SecretReconcilerFuncs) ReconcileSecretDeletion(req reconcile.Request) error

type ServiceAccountDeletionReconciler

type ServiceAccountDeletionReconciler interface {
	ReconcileServiceAccountDeletion(req reconcile.Request) error
}

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

type ServiceAccountEventHandler

type ServiceAccountEventHandler interface {
	CreateServiceAccount(obj *v1.ServiceAccount) error
	UpdateServiceAccount(old, new *v1.ServiceAccount) error
	DeleteServiceAccount(obj *v1.ServiceAccount) error
	GenericServiceAccount(obj *v1.ServiceAccount) error
}

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

type ServiceAccountEventHandlerFuncs

type ServiceAccountEventHandlerFuncs struct {
	OnCreate  func(obj *v1.ServiceAccount) error
	OnUpdate  func(old, new *v1.ServiceAccount) error
	OnDelete  func(obj *v1.ServiceAccount) error
	OnGeneric func(obj *v1.ServiceAccount) error
}

func (*ServiceAccountEventHandlerFuncs) CreateServiceAccount

func (f *ServiceAccountEventHandlerFuncs) CreateServiceAccount(obj *v1.ServiceAccount) error

func (*ServiceAccountEventHandlerFuncs) DeleteServiceAccount

func (f *ServiceAccountEventHandlerFuncs) DeleteServiceAccount(obj *v1.ServiceAccount) error

func (*ServiceAccountEventHandlerFuncs) GenericServiceAccount

func (f *ServiceAccountEventHandlerFuncs) GenericServiceAccount(obj *v1.ServiceAccount) error

func (*ServiceAccountEventHandlerFuncs) UpdateServiceAccount

func (f *ServiceAccountEventHandlerFuncs) UpdateServiceAccount(objOld, objNew *v1.ServiceAccount) error

type ServiceAccountEventWatcher

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

func NewServiceAccountEventWatcher

func NewServiceAccountEventWatcher(name string, mgr manager.Manager) ServiceAccountEventWatcher

type ServiceAccountFinalizer

type ServiceAccountFinalizer interface {
	ServiceAccountReconciler

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

	// finalize the object before it is deleted.
	// Watchers created with a finalizing handler will a
	FinalizeServiceAccount(obj *v1.ServiceAccount) error
}

Reconcile and finalize the ServiceAccount Resource implemented by the user

type ServiceAccountReconcileLoop

type ServiceAccountReconcileLoop interface {
	RunServiceAccountReconciler(ctx context.Context, rec ServiceAccountReconciler, predicates ...predicate.Predicate) error
}

func NewServiceAccountReconcileLoop

func NewServiceAccountReconcileLoop(name string, mgr manager.Manager, options reconcile.Options) ServiceAccountReconcileLoop

type ServiceAccountReconciler

type ServiceAccountReconciler interface {
	ReconcileServiceAccount(obj *v1.ServiceAccount) (reconcile.Result, error)
}

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

type ServiceAccountReconcilerFuncs

type ServiceAccountReconcilerFuncs struct {
	OnReconcileServiceAccount         func(obj *v1.ServiceAccount) (reconcile.Result, error)
	OnReconcileServiceAccountDeletion func(req reconcile.Request) error
}

func (*ServiceAccountReconcilerFuncs) ReconcileServiceAccount

func (f *ServiceAccountReconcilerFuncs) ReconcileServiceAccount(obj *v1.ServiceAccount) (reconcile.Result, error)

func (*ServiceAccountReconcilerFuncs) ReconcileServiceAccountDeletion

func (f *ServiceAccountReconcilerFuncs) ReconcileServiceAccountDeletion(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