controller

package
v0.2.7 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 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 MulticlusterNetworkPolicyDeletionReconciler

type MulticlusterNetworkPolicyDeletionReconciler interface {
	ReconcileNetworkPolicyDeletion(clusterName string, req reconcile.Request) error
}

Reconcile deletion events for the NetworkPolicy 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 MulticlusterNetworkPolicyReconcileLoop

type MulticlusterNetworkPolicyReconcileLoop interface {
	// AddMulticlusterNetworkPolicyReconciler adds a MulticlusterNetworkPolicyReconciler to the MulticlusterNetworkPolicyReconcileLoop.
	AddMulticlusterNetworkPolicyReconciler(ctx context.Context, rec MulticlusterNetworkPolicyReconciler, predicates ...predicate.Predicate)
}

type MulticlusterNetworkPolicyReconciler

type MulticlusterNetworkPolicyReconciler interface {
	ReconcileNetworkPolicy(clusterName string, obj *networking_k8s_io_v1.NetworkPolicy) (reconcile.Result, error)
}

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

type MulticlusterNetworkPolicyReconcilerFuncs

type MulticlusterNetworkPolicyReconcilerFuncs struct {
	OnReconcileNetworkPolicy         func(clusterName string, obj *networking_k8s_io_v1.NetworkPolicy) (reconcile.Result, error)
	OnReconcileNetworkPolicyDeletion func(clusterName string, req reconcile.Request) error
}

func (*MulticlusterNetworkPolicyReconcilerFuncs) ReconcileNetworkPolicy

func (*MulticlusterNetworkPolicyReconcilerFuncs) ReconcileNetworkPolicyDeletion

func (f *MulticlusterNetworkPolicyReconcilerFuncs) ReconcileNetworkPolicyDeletion(clusterName string, req reconcile.Request) error

type NetworkPolicyDeletionReconciler

type NetworkPolicyDeletionReconciler interface {
	ReconcileNetworkPolicyDeletion(req reconcile.Request) error
}

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

type NetworkPolicyEventHandler

type NetworkPolicyEventHandler interface {
	CreateNetworkPolicy(obj *networking_k8s_io_v1.NetworkPolicy) error
	UpdateNetworkPolicy(old, new *networking_k8s_io_v1.NetworkPolicy) error
	DeleteNetworkPolicy(obj *networking_k8s_io_v1.NetworkPolicy) error
	GenericNetworkPolicy(obj *networking_k8s_io_v1.NetworkPolicy) error
}

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

type NetworkPolicyEventHandlerFuncs

type NetworkPolicyEventHandlerFuncs struct {
	OnCreate  func(obj *networking_k8s_io_v1.NetworkPolicy) error
	OnUpdate  func(old, new *networking_k8s_io_v1.NetworkPolicy) error
	OnDelete  func(obj *networking_k8s_io_v1.NetworkPolicy) error
	OnGeneric func(obj *networking_k8s_io_v1.NetworkPolicy) error
}

func (*NetworkPolicyEventHandlerFuncs) CreateNetworkPolicy

func (*NetworkPolicyEventHandlerFuncs) DeleteNetworkPolicy

func (*NetworkPolicyEventHandlerFuncs) GenericNetworkPolicy

func (*NetworkPolicyEventHandlerFuncs) UpdateNetworkPolicy

func (f *NetworkPolicyEventHandlerFuncs) UpdateNetworkPolicy(objOld, objNew *networking_k8s_io_v1.NetworkPolicy) error

type NetworkPolicyEventWatcher

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

func NewNetworkPolicyEventWatcher

func NewNetworkPolicyEventWatcher(name string, mgr manager.Manager) NetworkPolicyEventWatcher

type NetworkPolicyFinalizer

type NetworkPolicyFinalizer interface {
	NetworkPolicyReconciler

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

	// finalize the object before it is deleted.
	// Watchers created with a finalizing handler will a
	FinalizeNetworkPolicy(obj *networking_k8s_io_v1.NetworkPolicy) error
}

Reconcile and finalize the NetworkPolicy Resource implemented by the user

type NetworkPolicyReconcileLoop

type NetworkPolicyReconcileLoop interface {
	RunNetworkPolicyReconciler(ctx context.Context, rec NetworkPolicyReconciler, predicates ...predicate.Predicate) error
}

func NewNetworkPolicyReconcileLoop

func NewNetworkPolicyReconcileLoop(name string, mgr manager.Manager, options reconcile.Options) NetworkPolicyReconcileLoop

type NetworkPolicyReconciler

type NetworkPolicyReconciler interface {
	ReconcileNetworkPolicy(obj *networking_k8s_io_v1.NetworkPolicy) (reconcile.Result, error)
}

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

type NetworkPolicyReconcilerFuncs

type NetworkPolicyReconcilerFuncs struct {
	OnReconcileNetworkPolicy         func(obj *networking_k8s_io_v1.NetworkPolicy) (reconcile.Result, error)
	OnReconcileNetworkPolicyDeletion func(req reconcile.Request) error
}

func (*NetworkPolicyReconcilerFuncs) ReconcileNetworkPolicy

func (*NetworkPolicyReconcilerFuncs) ReconcileNetworkPolicyDeletion

func (f *NetworkPolicyReconcilerFuncs) ReconcileNetworkPolicyDeletion(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