Documentation ¶
Overview ¶
Definitions for the Kubernetes Controllers
Definitions for the multicluster Kubernetes Controllers ¶
Definitions for the Kubernetes Controllers
Index ¶
- type MulticlusterNetworkPolicyDeletionReconciler
- type MulticlusterNetworkPolicyReconcileLoop
- type MulticlusterNetworkPolicyReconciler
- type MulticlusterNetworkPolicyReconcilerFuncs
- type NetworkPolicyDeletionReconciler
- type NetworkPolicyEventHandler
- type NetworkPolicyEventHandlerFuncs
- func (f *NetworkPolicyEventHandlerFuncs) CreateNetworkPolicy(obj *networking_k8s_io_v1.NetworkPolicy) error
- func (f *NetworkPolicyEventHandlerFuncs) DeleteNetworkPolicy(obj *networking_k8s_io_v1.NetworkPolicy) error
- func (f *NetworkPolicyEventHandlerFuncs) GenericNetworkPolicy(obj *networking_k8s_io_v1.NetworkPolicy) error
- func (f *NetworkPolicyEventHandlerFuncs) UpdateNetworkPolicy(objOld, objNew *networking_k8s_io_v1.NetworkPolicy) error
- type NetworkPolicyEventWatcher
- type NetworkPolicyFinalizer
- type NetworkPolicyReconcileLoop
- type NetworkPolicyReconciler
- type NetworkPolicyReconcilerFuncs
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) }
func NewMulticlusterNetworkPolicyReconcileLoop ¶
func NewMulticlusterNetworkPolicyReconcileLoop(name string, cw multicluster.ClusterWatcher, options reconcile.Options) MulticlusterNetworkPolicyReconcileLoop
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 (f *MulticlusterNetworkPolicyReconcilerFuncs) ReconcileNetworkPolicy(clusterName string, obj *networking_k8s_io_v1.NetworkPolicy) (reconcile.Result, error)
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 (f *NetworkPolicyEventHandlerFuncs) CreateNetworkPolicy(obj *networking_k8s_io_v1.NetworkPolicy) error
func (*NetworkPolicyEventHandlerFuncs) DeleteNetworkPolicy ¶
func (f *NetworkPolicyEventHandlerFuncs) DeleteNetworkPolicy(obj *networking_k8s_io_v1.NetworkPolicy) error
func (*NetworkPolicyEventHandlerFuncs) GenericNetworkPolicy ¶
func (f *NetworkPolicyEventHandlerFuncs) GenericNetworkPolicy(obj *networking_k8s_io_v1.NetworkPolicy) error
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
}
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 (f *NetworkPolicyReconcilerFuncs) ReconcileNetworkPolicy(obj *networking_k8s_io_v1.NetworkPolicy) (reconcile.Result, error)
func (*NetworkPolicyReconcilerFuncs) ReconcileNetworkPolicyDeletion ¶
func (f *NetworkPolicyReconcilerFuncs) ReconcileNetworkPolicyDeletion(req reconcile.Request) error