controllers

package
v0.3.8 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NetIPAddrPrefix

func NetIPAddrPrefix(addr netip.Addr) netip.Prefix

Types

type LoadBalancerReconciler

type LoadBalancerReconciler struct {
	client.Client
	record.EventRecorder
	Scheme *runtime.Scheme

	DPDK          dpdkclient.Client
	MetalnetCache *internal.MetalnetCache
	RouteUtil     metalbond.RouteUtil

	NodeName          string
	PublicVNI         int
	EnableIPv6Support bool
}

LoadBalancerReconciler reconciles a LoadBalancer object

func (*LoadBalancerReconciler) Reconcile

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

func (*LoadBalancerReconciler) SetupWithManager

func (r *LoadBalancerReconciler) SetupWithManager(mgr ctrl.Manager, metalnetCache cache.Cache) error

SetupWithManager sets up the controller with the Manager.

type NetworkInterfaceReconciler

type NetworkInterfaceReconciler struct {
	client.Client
	record.EventRecorder

	Scheme *runtime.Scheme

	DPDK      dpdkclient.Client
	RouteUtil metalbond.RouteUtil

	NetFnsManager *netfns.Manager
	SysFS         sysfs.FS

	PfToVfOffset                int
	NodeName                    string
	PublicVNI                   int
	EnableIPv6Support           bool
	BluefieldDetected           bool
	BluefieldHostDefaultBusAddr string
}

NetworkInterfaceReconciler reconciles a NetworkInterface object

func (*NetworkInterfaceReconciler) Reconcile

Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state.

func (*NetworkInterfaceReconciler) SetupWithManager

func (r *NetworkInterfaceReconciler) SetupWithManager(mgr ctrl.Manager, metalnetCache cache.Cache) error

SetupWithManager sets up the controller with the Manager.

type NetworkReconciler

type NetworkReconciler struct {
	client.Client
	Scheme *runtime.Scheme

	DPDK dpdkclient.Client

	RouteUtil        metalbond.RouteUtil
	MetalnetCache    *internal.MetalnetCache
	MetalnetMBClient *metalbond.MetalnetClient

	DefaultRouterAddr *metalbond.DefaultRouterAddress
	NodeName          string
	EnableIPv6Support bool
}

NetworkReconciler reconciles metalnetv1alpha1.Network.

func (*NetworkReconciler) Reconcile

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

Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state.

func (*NetworkReconciler) SetupWithManager

func (r *NetworkReconciler) SetupWithManager(mgr ctrl.Manager, metalnetCache cache.Cache) error

SetupWithManager sets up the controller with the Manager.

Jump to

Keyboard shortcuts

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