controller

package
v0.22.0 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2022 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 ClusterRoleBindingDeletionReconciler

type ClusterRoleBindingDeletionReconciler interface {
	ReconcileClusterRoleBindingDeletion(req reconcile.Request) error
}

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

type ClusterRoleBindingEventHandler

type ClusterRoleBindingEventHandler interface {
	CreateClusterRoleBinding(obj *rbac_authorization_k8s_io_v1.ClusterRoleBinding) error
	UpdateClusterRoleBinding(old, new *rbac_authorization_k8s_io_v1.ClusterRoleBinding) error
	DeleteClusterRoleBinding(obj *rbac_authorization_k8s_io_v1.ClusterRoleBinding) error
	GenericClusterRoleBinding(obj *rbac_authorization_k8s_io_v1.ClusterRoleBinding) error
}

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

type ClusterRoleBindingEventHandlerFuncs

type ClusterRoleBindingEventHandlerFuncs struct {
	OnCreate  func(obj *rbac_authorization_k8s_io_v1.ClusterRoleBinding) error
	OnUpdate  func(old, new *rbac_authorization_k8s_io_v1.ClusterRoleBinding) error
	OnDelete  func(obj *rbac_authorization_k8s_io_v1.ClusterRoleBinding) error
	OnGeneric func(obj *rbac_authorization_k8s_io_v1.ClusterRoleBinding) error
}

func (*ClusterRoleBindingEventHandlerFuncs) CreateClusterRoleBinding

func (*ClusterRoleBindingEventHandlerFuncs) DeleteClusterRoleBinding

func (*ClusterRoleBindingEventHandlerFuncs) GenericClusterRoleBinding

func (*ClusterRoleBindingEventHandlerFuncs) UpdateClusterRoleBinding

type ClusterRoleBindingEventWatcher

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

func NewClusterRoleBindingEventWatcher

func NewClusterRoleBindingEventWatcher(name string, mgr manager.Manager) ClusterRoleBindingEventWatcher

type ClusterRoleBindingFinalizer

type ClusterRoleBindingFinalizer interface {
	ClusterRoleBindingReconciler

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

	// finalize the object before it is deleted.
	// Watchers created with a finalizing handler will a
	FinalizeClusterRoleBinding(obj *rbac_authorization_k8s_io_v1.ClusterRoleBinding) error
}

Reconcile and finalize the ClusterRoleBinding Resource implemented by the user

type ClusterRoleBindingReconcileLoop

type ClusterRoleBindingReconcileLoop interface {
	RunClusterRoleBindingReconciler(ctx context.Context, rec ClusterRoleBindingReconciler, predicates ...predicate.Predicate) error
}

func NewClusterRoleBindingReconcileLoop

func NewClusterRoleBindingReconcileLoop(name string, mgr manager.Manager, options reconcile.Options) ClusterRoleBindingReconcileLoop

type ClusterRoleBindingReconciler

type ClusterRoleBindingReconciler interface {
	ReconcileClusterRoleBinding(obj *rbac_authorization_k8s_io_v1.ClusterRoleBinding) (reconcile.Result, error)
}

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

type ClusterRoleBindingReconcilerFuncs

type ClusterRoleBindingReconcilerFuncs struct {
	OnReconcileClusterRoleBinding         func(obj *rbac_authorization_k8s_io_v1.ClusterRoleBinding) (reconcile.Result, error)
	OnReconcileClusterRoleBindingDeletion func(req reconcile.Request) error
}

func (*ClusterRoleBindingReconcilerFuncs) ReconcileClusterRoleBinding

func (*ClusterRoleBindingReconcilerFuncs) ReconcileClusterRoleBindingDeletion

func (f *ClusterRoleBindingReconcilerFuncs) ReconcileClusterRoleBindingDeletion(req reconcile.Request) error

type ClusterRoleDeletionReconciler

type ClusterRoleDeletionReconciler interface {
	ReconcileClusterRoleDeletion(req reconcile.Request) error
}

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

type ClusterRoleEventHandler

type ClusterRoleEventHandler interface {
	CreateClusterRole(obj *rbac_authorization_k8s_io_v1.ClusterRole) error
	UpdateClusterRole(old, new *rbac_authorization_k8s_io_v1.ClusterRole) error
	DeleteClusterRole(obj *rbac_authorization_k8s_io_v1.ClusterRole) error
	GenericClusterRole(obj *rbac_authorization_k8s_io_v1.ClusterRole) error
}

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

type ClusterRoleEventHandlerFuncs

type ClusterRoleEventHandlerFuncs struct {
	OnCreate  func(obj *rbac_authorization_k8s_io_v1.ClusterRole) error
	OnUpdate  func(old, new *rbac_authorization_k8s_io_v1.ClusterRole) error
	OnDelete  func(obj *rbac_authorization_k8s_io_v1.ClusterRole) error
	OnGeneric func(obj *rbac_authorization_k8s_io_v1.ClusterRole) error
}

func (*ClusterRoleEventHandlerFuncs) CreateClusterRole

func (*ClusterRoleEventHandlerFuncs) DeleteClusterRole

func (*ClusterRoleEventHandlerFuncs) GenericClusterRole

func (*ClusterRoleEventHandlerFuncs) UpdateClusterRole

func (f *ClusterRoleEventHandlerFuncs) UpdateClusterRole(objOld, objNew *rbac_authorization_k8s_io_v1.ClusterRole) error

type ClusterRoleEventWatcher

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

func NewClusterRoleEventWatcher

func NewClusterRoleEventWatcher(name string, mgr manager.Manager) ClusterRoleEventWatcher

type ClusterRoleFinalizer

type ClusterRoleFinalizer interface {
	ClusterRoleReconciler

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

	// finalize the object before it is deleted.
	// Watchers created with a finalizing handler will a
	FinalizeClusterRole(obj *rbac_authorization_k8s_io_v1.ClusterRole) error
}

Reconcile and finalize the ClusterRole Resource implemented by the user

type ClusterRoleReconcileLoop

type ClusterRoleReconcileLoop interface {
	RunClusterRoleReconciler(ctx context.Context, rec ClusterRoleReconciler, predicates ...predicate.Predicate) error
}

func NewClusterRoleReconcileLoop

func NewClusterRoleReconcileLoop(name string, mgr manager.Manager, options reconcile.Options) ClusterRoleReconcileLoop

type ClusterRoleReconciler

type ClusterRoleReconciler interface {
	ReconcileClusterRole(obj *rbac_authorization_k8s_io_v1.ClusterRole) (reconcile.Result, error)
}

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

type ClusterRoleReconcilerFuncs

type ClusterRoleReconcilerFuncs struct {
	OnReconcileClusterRole         func(obj *rbac_authorization_k8s_io_v1.ClusterRole) (reconcile.Result, error)
	OnReconcileClusterRoleDeletion func(req reconcile.Request) error
}

func (*ClusterRoleReconcilerFuncs) ReconcileClusterRole

func (*ClusterRoleReconcilerFuncs) ReconcileClusterRoleDeletion

func (f *ClusterRoleReconcilerFuncs) ReconcileClusterRoleDeletion(req reconcile.Request) error

type MulticlusterClusterRoleBindingDeletionReconciler

type MulticlusterClusterRoleBindingDeletionReconciler interface {
	ReconcileClusterRoleBindingDeletion(clusterName string, req reconcile.Request) error
}

Reconcile deletion events for the ClusterRoleBinding 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 MulticlusterClusterRoleBindingReconcileLoop

type MulticlusterClusterRoleBindingReconcileLoop interface {
	// AddMulticlusterClusterRoleBindingReconciler adds a MulticlusterClusterRoleBindingReconciler to the MulticlusterClusterRoleBindingReconcileLoop.
	AddMulticlusterClusterRoleBindingReconciler(ctx context.Context, rec MulticlusterClusterRoleBindingReconciler, predicates ...predicate.Predicate)
}

type MulticlusterClusterRoleBindingReconciler

type MulticlusterClusterRoleBindingReconciler interface {
	ReconcileClusterRoleBinding(clusterName string, obj *rbac_authorization_k8s_io_v1.ClusterRoleBinding) (reconcile.Result, error)
}

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

type MulticlusterClusterRoleBindingReconcilerFuncs

type MulticlusterClusterRoleBindingReconcilerFuncs struct {
	OnReconcileClusterRoleBinding         func(clusterName string, obj *rbac_authorization_k8s_io_v1.ClusterRoleBinding) (reconcile.Result, error)
	OnReconcileClusterRoleBindingDeletion func(clusterName string, req reconcile.Request) error
}

func (*MulticlusterClusterRoleBindingReconcilerFuncs) ReconcileClusterRoleBinding

func (*MulticlusterClusterRoleBindingReconcilerFuncs) ReconcileClusterRoleBindingDeletion

func (f *MulticlusterClusterRoleBindingReconcilerFuncs) ReconcileClusterRoleBindingDeletion(clusterName string, req reconcile.Request) error

type MulticlusterClusterRoleDeletionReconciler

type MulticlusterClusterRoleDeletionReconciler interface {
	ReconcileClusterRoleDeletion(clusterName string, req reconcile.Request) error
}

Reconcile deletion events for the ClusterRole 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 MulticlusterClusterRoleReconcileLoop

type MulticlusterClusterRoleReconcileLoop interface {
	// AddMulticlusterClusterRoleReconciler adds a MulticlusterClusterRoleReconciler to the MulticlusterClusterRoleReconcileLoop.
	AddMulticlusterClusterRoleReconciler(ctx context.Context, rec MulticlusterClusterRoleReconciler, predicates ...predicate.Predicate)
}

type MulticlusterClusterRoleReconciler

type MulticlusterClusterRoleReconciler interface {
	ReconcileClusterRole(clusterName string, obj *rbac_authorization_k8s_io_v1.ClusterRole) (reconcile.Result, error)
}

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

type MulticlusterClusterRoleReconcilerFuncs

type MulticlusterClusterRoleReconcilerFuncs struct {
	OnReconcileClusterRole         func(clusterName string, obj *rbac_authorization_k8s_io_v1.ClusterRole) (reconcile.Result, error)
	OnReconcileClusterRoleDeletion func(clusterName string, req reconcile.Request) error
}

func (*MulticlusterClusterRoleReconcilerFuncs) ReconcileClusterRole

func (*MulticlusterClusterRoleReconcilerFuncs) ReconcileClusterRoleDeletion

func (f *MulticlusterClusterRoleReconcilerFuncs) ReconcileClusterRoleDeletion(clusterName string, req reconcile.Request) error

type MulticlusterRoleBindingDeletionReconciler

type MulticlusterRoleBindingDeletionReconciler interface {
	ReconcileRoleBindingDeletion(clusterName string, req reconcile.Request) error
}

Reconcile deletion events for the RoleBinding 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 MulticlusterRoleBindingReconcileLoop

type MulticlusterRoleBindingReconcileLoop interface {
	// AddMulticlusterRoleBindingReconciler adds a MulticlusterRoleBindingReconciler to the MulticlusterRoleBindingReconcileLoop.
	AddMulticlusterRoleBindingReconciler(ctx context.Context, rec MulticlusterRoleBindingReconciler, predicates ...predicate.Predicate)
}

type MulticlusterRoleBindingReconciler

type MulticlusterRoleBindingReconciler interface {
	ReconcileRoleBinding(clusterName string, obj *rbac_authorization_k8s_io_v1.RoleBinding) (reconcile.Result, error)
}

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

type MulticlusterRoleBindingReconcilerFuncs

type MulticlusterRoleBindingReconcilerFuncs struct {
	OnReconcileRoleBinding         func(clusterName string, obj *rbac_authorization_k8s_io_v1.RoleBinding) (reconcile.Result, error)
	OnReconcileRoleBindingDeletion func(clusterName string, req reconcile.Request) error
}

func (*MulticlusterRoleBindingReconcilerFuncs) ReconcileRoleBinding

func (*MulticlusterRoleBindingReconcilerFuncs) ReconcileRoleBindingDeletion

func (f *MulticlusterRoleBindingReconcilerFuncs) ReconcileRoleBindingDeletion(clusterName string, req reconcile.Request) error

type MulticlusterRoleDeletionReconciler

type MulticlusterRoleDeletionReconciler interface {
	ReconcileRoleDeletion(clusterName string, req reconcile.Request) error
}

Reconcile deletion events for the Role 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 MulticlusterRoleReconcileLoop

type MulticlusterRoleReconcileLoop interface {
	// AddMulticlusterRoleReconciler adds a MulticlusterRoleReconciler to the MulticlusterRoleReconcileLoop.
	AddMulticlusterRoleReconciler(ctx context.Context, rec MulticlusterRoleReconciler, predicates ...predicate.Predicate)
}

type MulticlusterRoleReconciler

type MulticlusterRoleReconciler interface {
	ReconcileRole(clusterName string, obj *rbac_authorization_k8s_io_v1.Role) (reconcile.Result, error)
}

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

type MulticlusterRoleReconcilerFuncs

type MulticlusterRoleReconcilerFuncs struct {
	OnReconcileRole         func(clusterName string, obj *rbac_authorization_k8s_io_v1.Role) (reconcile.Result, error)
	OnReconcileRoleDeletion func(clusterName string, req reconcile.Request) error
}

func (*MulticlusterRoleReconcilerFuncs) ReconcileRole

func (*MulticlusterRoleReconcilerFuncs) ReconcileRoleDeletion

func (f *MulticlusterRoleReconcilerFuncs) ReconcileRoleDeletion(clusterName string, req reconcile.Request) error

type RoleBindingDeletionReconciler

type RoleBindingDeletionReconciler interface {
	ReconcileRoleBindingDeletion(req reconcile.Request) error
}

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

type RoleBindingEventHandler

type RoleBindingEventHandler interface {
	CreateRoleBinding(obj *rbac_authorization_k8s_io_v1.RoleBinding) error
	UpdateRoleBinding(old, new *rbac_authorization_k8s_io_v1.RoleBinding) error
	DeleteRoleBinding(obj *rbac_authorization_k8s_io_v1.RoleBinding) error
	GenericRoleBinding(obj *rbac_authorization_k8s_io_v1.RoleBinding) error
}

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

type RoleBindingEventHandlerFuncs

type RoleBindingEventHandlerFuncs struct {
	OnCreate  func(obj *rbac_authorization_k8s_io_v1.RoleBinding) error
	OnUpdate  func(old, new *rbac_authorization_k8s_io_v1.RoleBinding) error
	OnDelete  func(obj *rbac_authorization_k8s_io_v1.RoleBinding) error
	OnGeneric func(obj *rbac_authorization_k8s_io_v1.RoleBinding) error
}

func (*RoleBindingEventHandlerFuncs) CreateRoleBinding

func (*RoleBindingEventHandlerFuncs) DeleteRoleBinding

func (*RoleBindingEventHandlerFuncs) GenericRoleBinding

func (*RoleBindingEventHandlerFuncs) UpdateRoleBinding

func (f *RoleBindingEventHandlerFuncs) UpdateRoleBinding(objOld, objNew *rbac_authorization_k8s_io_v1.RoleBinding) error

type RoleBindingEventWatcher

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

func NewRoleBindingEventWatcher

func NewRoleBindingEventWatcher(name string, mgr manager.Manager) RoleBindingEventWatcher

type RoleBindingFinalizer

type RoleBindingFinalizer interface {
	RoleBindingReconciler

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

	// finalize the object before it is deleted.
	// Watchers created with a finalizing handler will a
	FinalizeRoleBinding(obj *rbac_authorization_k8s_io_v1.RoleBinding) error
}

Reconcile and finalize the RoleBinding Resource implemented by the user

type RoleBindingReconcileLoop

type RoleBindingReconcileLoop interface {
	RunRoleBindingReconciler(ctx context.Context, rec RoleBindingReconciler, predicates ...predicate.Predicate) error
}

func NewRoleBindingReconcileLoop

func NewRoleBindingReconcileLoop(name string, mgr manager.Manager, options reconcile.Options) RoleBindingReconcileLoop

type RoleBindingReconciler

type RoleBindingReconciler interface {
	ReconcileRoleBinding(obj *rbac_authorization_k8s_io_v1.RoleBinding) (reconcile.Result, error)
}

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

type RoleBindingReconcilerFuncs

type RoleBindingReconcilerFuncs struct {
	OnReconcileRoleBinding         func(obj *rbac_authorization_k8s_io_v1.RoleBinding) (reconcile.Result, error)
	OnReconcileRoleBindingDeletion func(req reconcile.Request) error
}

func (*RoleBindingReconcilerFuncs) ReconcileRoleBinding

func (*RoleBindingReconcilerFuncs) ReconcileRoleBindingDeletion

func (f *RoleBindingReconcilerFuncs) ReconcileRoleBindingDeletion(req reconcile.Request) error

type RoleDeletionReconciler

type RoleDeletionReconciler interface {
	ReconcileRoleDeletion(req reconcile.Request) error
}

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

type RoleEventHandler

type RoleEventHandler interface {
	CreateRole(obj *rbac_authorization_k8s_io_v1.Role) error
	UpdateRole(old, new *rbac_authorization_k8s_io_v1.Role) error
	DeleteRole(obj *rbac_authorization_k8s_io_v1.Role) error
	GenericRole(obj *rbac_authorization_k8s_io_v1.Role) error
}

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

type RoleEventHandlerFuncs

type RoleEventHandlerFuncs struct {
	OnCreate  func(obj *rbac_authorization_k8s_io_v1.Role) error
	OnUpdate  func(old, new *rbac_authorization_k8s_io_v1.Role) error
	OnDelete  func(obj *rbac_authorization_k8s_io_v1.Role) error
	OnGeneric func(obj *rbac_authorization_k8s_io_v1.Role) error
}

func (*RoleEventHandlerFuncs) CreateRole

func (*RoleEventHandlerFuncs) DeleteRole

func (*RoleEventHandlerFuncs) GenericRole

func (*RoleEventHandlerFuncs) UpdateRole

func (f *RoleEventHandlerFuncs) UpdateRole(objOld, objNew *rbac_authorization_k8s_io_v1.Role) error

type RoleEventWatcher

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

func NewRoleEventWatcher

func NewRoleEventWatcher(name string, mgr manager.Manager) RoleEventWatcher

type RoleFinalizer

type RoleFinalizer interface {
	RoleReconciler

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

	// finalize the object before it is deleted.
	// Watchers created with a finalizing handler will a
	FinalizeRole(obj *rbac_authorization_k8s_io_v1.Role) error
}

Reconcile and finalize the Role Resource implemented by the user

type RoleReconcileLoop

type RoleReconcileLoop interface {
	RunRoleReconciler(ctx context.Context, rec RoleReconciler, predicates ...predicate.Predicate) error
}

func NewRoleReconcileLoop

func NewRoleReconcileLoop(name string, mgr manager.Manager, options reconcile.Options) RoleReconcileLoop

type RoleReconciler

type RoleReconciler interface {
	ReconcileRole(obj *rbac_authorization_k8s_io_v1.Role) (reconcile.Result, error)
}

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

type RoleReconcilerFuncs

type RoleReconcilerFuncs struct {
	OnReconcileRole         func(obj *rbac_authorization_k8s_io_v1.Role) (reconcile.Result, error)
	OnReconcileRoleDeletion func(req reconcile.Request) error
}

func (*RoleReconcilerFuncs) ReconcileRole

func (*RoleReconcilerFuncs) ReconcileRoleDeletion

func (f *RoleReconcilerFuncs) ReconcileRoleDeletion(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