controllers

package
v2.6.0 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2024 License: Apache-2.0 Imports: 36 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetImage

func GetImage(apiReader client.Reader, key client.ObjectKey) (string, error)

GetImage returns the current pod's container image. This is intended to prepare the image name for EgressReconciler.

func SetupCRBReconciler

func SetupCRBReconciler(mgr manager.Manager) error

SetupCRBReconciler setups ClusterResourceBinding reconciler for coil-controller.

func SetupPodWatcher

func SetupPodWatcher(mgr ctrl.Manager, ns, name string, ft founat.FoUTunnel, encapSportAuto bool, eg founat.Egress) error

SetupPodWatcher registers pod watching reconciler to mgr.

Types

type AddressBlockReconciler

type AddressBlockReconciler struct {
	Notify chan<- struct{}
}

AddressBlockReconciler watches AddressBlocks and notifies a channel

func (*AddressBlockReconciler) Reconcile

func (r *AddressBlockReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)

Reconcile implements Reconciler interface.

func (*AddressBlockReconciler) SetupWithManager

func (r *AddressBlockReconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager registers this with the manager.

type AddressPoolReconciler

type AddressPoolReconciler struct {
	client.Client
	Scheme  *runtime.Scheme
	Manager ipam.PoolManager
}

AddressPoolReconciler watches child AddressBlocks and pool itself for deletion.

func (*AddressPoolReconciler) Reconcile

func (r *AddressPoolReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)

Reconcile implements Reconciler interface. https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.8.3/pkg/reconcile?tab=doc#Reconciler

func (*AddressPoolReconciler) SetupWithManager

func (r *AddressPoolReconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager registers this with the manager.

type BlockRequestReconciler

type BlockRequestReconciler struct {
	client.Client
	Scheme  *runtime.Scheme
	Manager ipam.PoolManager
}

BlockRequestReconciler reconciles a BlockRequest object

func (*BlockRequestReconciler) Reconcile

func (r *BlockRequestReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)

Reconcile implements Reconciler interface. https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.8.3/pkg/reconcile?tab=doc#Reconciler

func (*BlockRequestReconciler) SetupWithManager

func (r *BlockRequestReconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager registers this with the manager.

type BlockRequestWatcher

type BlockRequestWatcher struct {
	client.Client
	NodeIPAM ipam.NodeIPAM
	NodeName string
}

BlockRequestWatcher watches BlockRequest status on each node.

func (*BlockRequestWatcher) Reconcile

func (r *BlockRequestWatcher) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)

Reconcile implements Reconcile interface. https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.8.3/pkg/reconcile?tab=doc#Watcher

func (*BlockRequestWatcher) SetupWithManager

func (r *BlockRequestWatcher) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager registers this with the manager.

type EgressReconciler

type EgressReconciler struct {
	client.Client
	Scheme *runtime.Scheme
	Image  string
	Port   int32
}

EgressReconciler reconciles a Egress object

func (*EgressReconciler) Reconcile

func (r *EgressReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)

Reconcile implements Reconciler interface. - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.8.3/pkg/reconcile

func (*EgressReconciler) SetupWithManager

func (r *EgressReconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager registers this with the manager.

type EgressWatcher added in v2.5.0

type EgressWatcher struct {
	client.Client
	NodeName   string
	PodNet     nodenet.PodNetwork
	EgressPort int
}

func (*EgressWatcher) Reconcile added in v2.5.0

func (r *EgressWatcher) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)

Reconcile implements Reconciler interface. - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.8.3/pkg/reconcile

func (*EgressWatcher) SetupWithManager added in v2.5.0

func (r *EgressWatcher) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager registers this with the manager.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL