controller

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2020 License: Apache-2.0 Imports: 11 Imported by: 3

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 ConfigMapDeletionReconciler

type ConfigMapDeletionReconciler interface {
	ReconcileConfigMapDeletion(req reconcile.Request) error
}

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

type ConfigMapEventHandler

type ConfigMapEventHandler interface {
	CreateConfigMap(obj *v1.ConfigMap) error
	UpdateConfigMap(old, new *v1.ConfigMap) error
	DeleteConfigMap(obj *v1.ConfigMap) error
	GenericConfigMap(obj *v1.ConfigMap) error
}

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

type ConfigMapEventHandlerFuncs

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

func (*ConfigMapEventHandlerFuncs) CreateConfigMap

func (f *ConfigMapEventHandlerFuncs) CreateConfigMap(obj *v1.ConfigMap) error

func (*ConfigMapEventHandlerFuncs) DeleteConfigMap

func (f *ConfigMapEventHandlerFuncs) DeleteConfigMap(obj *v1.ConfigMap) error

func (*ConfigMapEventHandlerFuncs) GenericConfigMap

func (f *ConfigMapEventHandlerFuncs) GenericConfigMap(obj *v1.ConfigMap) error

func (*ConfigMapEventHandlerFuncs) UpdateConfigMap

func (f *ConfigMapEventHandlerFuncs) UpdateConfigMap(objOld, objNew *v1.ConfigMap) error

type ConfigMapEventWatcher

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

func NewConfigMapEventWatcher

func NewConfigMapEventWatcher(name string, mgr manager.Manager) ConfigMapEventWatcher

type ConfigMapFinalizer

type ConfigMapFinalizer interface {
	ConfigMapReconciler

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

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

Reconcile and finalize the ConfigMap Resource implemented by the user

type ConfigMapReconcileLoop

type ConfigMapReconcileLoop interface {
	RunConfigMapReconciler(ctx context.Context, rec ConfigMapReconciler, predicates ...predicate.Predicate) error
}

func NewConfigMapReconcileLoop

func NewConfigMapReconcileLoop(name string, mgr manager.Manager, options reconcile.Options) ConfigMapReconcileLoop

type ConfigMapReconciler

type ConfigMapReconciler interface {
	ReconcileConfigMap(obj *v1.ConfigMap) (reconcile.Result, error)
}

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

type ConfigMapReconcilerFuncs

type ConfigMapReconcilerFuncs struct {
	OnReconcileConfigMap         func(obj *v1.ConfigMap) (reconcile.Result, error)
	OnReconcileConfigMapDeletion func(req reconcile.Request) error
}

func (*ConfigMapReconcilerFuncs) ReconcileConfigMap

func (f *ConfigMapReconcilerFuncs) ReconcileConfigMap(obj *v1.ConfigMap) (reconcile.Result, error)

func (*ConfigMapReconcilerFuncs) ReconcileConfigMapDeletion

func (f *ConfigMapReconcilerFuncs) ReconcileConfigMapDeletion(req reconcile.Request) error

type MulticlusterConfigMapDeletionReconciler

type MulticlusterConfigMapDeletionReconciler interface {
	ReconcileConfigMapDeletion(clusterName string, req reconcile.Request) error
}

Reconcile deletion events for the ConfigMap 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 MulticlusterConfigMapReconcileLoop

type MulticlusterConfigMapReconcileLoop interface {
	// AddMulticlusterConfigMapReconciler adds a MulticlusterConfigMapReconciler to the MulticlusterConfigMapReconcileLoop.
	AddMulticlusterConfigMapReconciler(ctx context.Context, rec MulticlusterConfigMapReconciler, predicates ...predicate.Predicate)
}

type MulticlusterConfigMapReconciler

type MulticlusterConfigMapReconciler interface {
	ReconcileConfigMap(clusterName string, obj *v1.ConfigMap) (reconcile.Result, error)
}

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

type MulticlusterConfigMapReconcilerFuncs

type MulticlusterConfigMapReconcilerFuncs struct {
	OnReconcileConfigMap         func(clusterName string, obj *v1.ConfigMap) (reconcile.Result, error)
	OnReconcileConfigMapDeletion func(clusterName string, req reconcile.Request) error
}

func (*MulticlusterConfigMapReconcilerFuncs) ReconcileConfigMap

func (f *MulticlusterConfigMapReconcilerFuncs) ReconcileConfigMap(clusterName string, obj *v1.ConfigMap) (reconcile.Result, error)

func (*MulticlusterConfigMapReconcilerFuncs) ReconcileConfigMapDeletion

func (f *MulticlusterConfigMapReconcilerFuncs) ReconcileConfigMapDeletion(clusterName string, req reconcile.Request) error

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 MulticlusterNodeDeletionReconciler

type MulticlusterNodeDeletionReconciler interface {
	ReconcileNodeDeletion(clusterName string, req reconcile.Request) error
}

Reconcile deletion events for the Node 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 MulticlusterNodeReconcileLoop

type MulticlusterNodeReconcileLoop interface {
	// AddMulticlusterNodeReconciler adds a MulticlusterNodeReconciler to the MulticlusterNodeReconcileLoop.
	AddMulticlusterNodeReconciler(ctx context.Context, rec MulticlusterNodeReconciler, predicates ...predicate.Predicate)
}

type MulticlusterNodeReconciler

type MulticlusterNodeReconciler interface {
	ReconcileNode(clusterName string, obj *v1.Node) (reconcile.Result, error)
}

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

type MulticlusterNodeReconcilerFuncs

type MulticlusterNodeReconcilerFuncs struct {
	OnReconcileNode         func(clusterName string, obj *v1.Node) (reconcile.Result, error)
	OnReconcileNodeDeletion func(clusterName string, req reconcile.Request) error
}

func (*MulticlusterNodeReconcilerFuncs) ReconcileNode

func (f *MulticlusterNodeReconcilerFuncs) ReconcileNode(clusterName string, obj *v1.Node) (reconcile.Result, error)

func (*MulticlusterNodeReconcilerFuncs) ReconcileNodeDeletion

func (f *MulticlusterNodeReconcilerFuncs) ReconcileNodeDeletion(clusterName string, req reconcile.Request) error

type MulticlusterPodDeletionReconciler

type MulticlusterPodDeletionReconciler interface {
	ReconcilePodDeletion(clusterName string, req reconcile.Request) error
}

Reconcile deletion events for the Pod 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 MulticlusterPodReconcileLoop

type MulticlusterPodReconcileLoop interface {
	// AddMulticlusterPodReconciler adds a MulticlusterPodReconciler to the MulticlusterPodReconcileLoop.
	AddMulticlusterPodReconciler(ctx context.Context, rec MulticlusterPodReconciler, predicates ...predicate.Predicate)
}

type MulticlusterPodReconciler

type MulticlusterPodReconciler interface {
	ReconcilePod(clusterName string, obj *v1.Pod) (reconcile.Result, error)
}

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

type MulticlusterPodReconcilerFuncs

type MulticlusterPodReconcilerFuncs struct {
	OnReconcilePod         func(clusterName string, obj *v1.Pod) (reconcile.Result, error)
	OnReconcilePodDeletion func(clusterName string, req reconcile.Request) error
}

func (*MulticlusterPodReconcilerFuncs) ReconcilePod

func (f *MulticlusterPodReconcilerFuncs) ReconcilePod(clusterName string, obj *v1.Pod) (reconcile.Result, error)

func (*MulticlusterPodReconcilerFuncs) ReconcilePodDeletion

func (f *MulticlusterPodReconcilerFuncs) ReconcilePodDeletion(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 MulticlusterServiceDeletionReconciler

type MulticlusterServiceDeletionReconciler interface {
	ReconcileServiceDeletion(clusterName string, req reconcile.Request) error
}

Reconcile deletion events for the Service 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 MulticlusterServiceReconcileLoop

type MulticlusterServiceReconcileLoop interface {
	// AddMulticlusterServiceReconciler adds a MulticlusterServiceReconciler to the MulticlusterServiceReconcileLoop.
	AddMulticlusterServiceReconciler(ctx context.Context, rec MulticlusterServiceReconciler, predicates ...predicate.Predicate)
}

type MulticlusterServiceReconciler

type MulticlusterServiceReconciler interface {
	ReconcileService(clusterName string, obj *v1.Service) (reconcile.Result, error)
}

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

type MulticlusterServiceReconcilerFuncs

type MulticlusterServiceReconcilerFuncs struct {
	OnReconcileService         func(clusterName string, obj *v1.Service) (reconcile.Result, error)
	OnReconcileServiceDeletion func(clusterName string, req reconcile.Request) error
}

func (*MulticlusterServiceReconcilerFuncs) ReconcileService

func (f *MulticlusterServiceReconcilerFuncs) ReconcileService(clusterName string, obj *v1.Service) (reconcile.Result, error)

func (*MulticlusterServiceReconcilerFuncs) ReconcileServiceDeletion

func (f *MulticlusterServiceReconcilerFuncs) ReconcileServiceDeletion(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 NodeDeletionReconciler

type NodeDeletionReconciler interface {
	ReconcileNodeDeletion(req reconcile.Request) error
}

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

type NodeEventHandler

type NodeEventHandler interface {
	CreateNode(obj *v1.Node) error
	UpdateNode(old, new *v1.Node) error
	DeleteNode(obj *v1.Node) error
	GenericNode(obj *v1.Node) error
}

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

type NodeEventHandlerFuncs

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

func (*NodeEventHandlerFuncs) CreateNode

func (f *NodeEventHandlerFuncs) CreateNode(obj *v1.Node) error

func (*NodeEventHandlerFuncs) DeleteNode

func (f *NodeEventHandlerFuncs) DeleteNode(obj *v1.Node) error

func (*NodeEventHandlerFuncs) GenericNode

func (f *NodeEventHandlerFuncs) GenericNode(obj *v1.Node) error

func (*NodeEventHandlerFuncs) UpdateNode

func (f *NodeEventHandlerFuncs) UpdateNode(objOld, objNew *v1.Node) error

type NodeEventWatcher

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

func NewNodeEventWatcher

func NewNodeEventWatcher(name string, mgr manager.Manager) NodeEventWatcher

type NodeFinalizer

type NodeFinalizer interface {
	NodeReconciler

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

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

Reconcile and finalize the Node Resource implemented by the user

type NodeReconcileLoop

type NodeReconcileLoop interface {
	RunNodeReconciler(ctx context.Context, rec NodeReconciler, predicates ...predicate.Predicate) error
}

func NewNodeReconcileLoop

func NewNodeReconcileLoop(name string, mgr manager.Manager, options reconcile.Options) NodeReconcileLoop

type NodeReconciler

type NodeReconciler interface {
	ReconcileNode(obj *v1.Node) (reconcile.Result, error)
}

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

type NodeReconcilerFuncs

type NodeReconcilerFuncs struct {
	OnReconcileNode         func(obj *v1.Node) (reconcile.Result, error)
	OnReconcileNodeDeletion func(req reconcile.Request) error
}

func (*NodeReconcilerFuncs) ReconcileNode

func (f *NodeReconcilerFuncs) ReconcileNode(obj *v1.Node) (reconcile.Result, error)

func (*NodeReconcilerFuncs) ReconcileNodeDeletion

func (f *NodeReconcilerFuncs) ReconcileNodeDeletion(req reconcile.Request) error

type PodDeletionReconciler

type PodDeletionReconciler interface {
	ReconcilePodDeletion(req reconcile.Request) error
}

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

type PodEventHandler

type PodEventHandler interface {
	CreatePod(obj *v1.Pod) error
	UpdatePod(old, new *v1.Pod) error
	DeletePod(obj *v1.Pod) error
	GenericPod(obj *v1.Pod) error
}

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

type PodEventHandlerFuncs

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

func (*PodEventHandlerFuncs) CreatePod

func (f *PodEventHandlerFuncs) CreatePod(obj *v1.Pod) error

func (*PodEventHandlerFuncs) DeletePod

func (f *PodEventHandlerFuncs) DeletePod(obj *v1.Pod) error

func (*PodEventHandlerFuncs) GenericPod

func (f *PodEventHandlerFuncs) GenericPod(obj *v1.Pod) error

func (*PodEventHandlerFuncs) UpdatePod

func (f *PodEventHandlerFuncs) UpdatePod(objOld, objNew *v1.Pod) error

type PodEventWatcher

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

func NewPodEventWatcher

func NewPodEventWatcher(name string, mgr manager.Manager) PodEventWatcher

type PodFinalizer

type PodFinalizer interface {
	PodReconciler

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

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

Reconcile and finalize the Pod Resource implemented by the user

type PodReconcileLoop

type PodReconcileLoop interface {
	RunPodReconciler(ctx context.Context, rec PodReconciler, predicates ...predicate.Predicate) error
}

func NewPodReconcileLoop

func NewPodReconcileLoop(name string, mgr manager.Manager, options reconcile.Options) PodReconcileLoop

type PodReconciler

type PodReconciler interface {
	ReconcilePod(obj *v1.Pod) (reconcile.Result, error)
}

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

type PodReconcilerFuncs

type PodReconcilerFuncs struct {
	OnReconcilePod         func(obj *v1.Pod) (reconcile.Result, error)
	OnReconcilePodDeletion func(req reconcile.Request) error
}

func (*PodReconcilerFuncs) ReconcilePod

func (f *PodReconcilerFuncs) ReconcilePod(obj *v1.Pod) (reconcile.Result, error)

func (*PodReconcilerFuncs) ReconcilePodDeletion

func (f *PodReconcilerFuncs) ReconcilePodDeletion(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

type ServiceDeletionReconciler

type ServiceDeletionReconciler interface {
	ReconcileServiceDeletion(req reconcile.Request) error
}

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

type ServiceEventHandler

type ServiceEventHandler interface {
	CreateService(obj *v1.Service) error
	UpdateService(old, new *v1.Service) error
	DeleteService(obj *v1.Service) error
	GenericService(obj *v1.Service) error
}

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

type ServiceEventHandlerFuncs

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

func (*ServiceEventHandlerFuncs) CreateService

func (f *ServiceEventHandlerFuncs) CreateService(obj *v1.Service) error

func (*ServiceEventHandlerFuncs) DeleteService

func (f *ServiceEventHandlerFuncs) DeleteService(obj *v1.Service) error

func (*ServiceEventHandlerFuncs) GenericService

func (f *ServiceEventHandlerFuncs) GenericService(obj *v1.Service) error

func (*ServiceEventHandlerFuncs) UpdateService

func (f *ServiceEventHandlerFuncs) UpdateService(objOld, objNew *v1.Service) error

type ServiceEventWatcher

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

func NewServiceEventWatcher

func NewServiceEventWatcher(name string, mgr manager.Manager) ServiceEventWatcher

type ServiceFinalizer

type ServiceFinalizer interface {
	ServiceReconciler

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

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

Reconcile and finalize the Service Resource implemented by the user

type ServiceReconcileLoop

type ServiceReconcileLoop interface {
	RunServiceReconciler(ctx context.Context, rec ServiceReconciler, predicates ...predicate.Predicate) error
}

func NewServiceReconcileLoop

func NewServiceReconcileLoop(name string, mgr manager.Manager, options reconcile.Options) ServiceReconcileLoop

type ServiceReconciler

type ServiceReconciler interface {
	ReconcileService(obj *v1.Service) (reconcile.Result, error)
}

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

type ServiceReconcilerFuncs

type ServiceReconcilerFuncs struct {
	OnReconcileService         func(obj *v1.Service) (reconcile.Result, error)
	OnReconcileServiceDeletion func(req reconcile.Request) error
}

func (*ServiceReconcilerFuncs) ReconcileService

func (f *ServiceReconcilerFuncs) ReconcileService(obj *v1.Service) (reconcile.Result, error)

func (*ServiceReconcilerFuncs) ReconcileServiceDeletion

func (f *ServiceReconcilerFuncs) ReconcileServiceDeletion(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