ipmapping

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2025 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Overview

Package ipmapping contains the logic to connect the network moduler with the offloading one.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateOrUpdateIP

func CreateOrUpdateIP(ctx context.Context, cl client.Client, scheme *runtime.Scheme, pod *corev1.Pod) error

CreateOrUpdateIP creates or updates an IP resource for the given pod.

Types

type ConfigurationReconciler

type ConfigurationReconciler struct {
	Client         client.Client
	Scheme         *runtime.Scheme
	EventsRecorder record.EventRecorder
}

ConfigurationReconciler creates a mapping for the UnknownSourceIP for each remote cluster. This allows traffic with "external" source IPs to be routed from a leaf cluster to another.

func NewConfigurationReconciler

func NewConfigurationReconciler(cl client.Client, s *runtime.Scheme, er record.EventRecorder) *ConfigurationReconciler

NewConfigurationReconciler returns a new PublicKeysReconciler.

func (*ConfigurationReconciler) Reconcile

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

Reconcile manage Configuration resources.

func (*ConfigurationReconciler) SetupWithManager

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

SetupWithManager register the RemappingReconciler to the manager.

type OffloadedPodReconciler

type OffloadedPodReconciler struct {
	client.Client
	Scheme         *runtime.Scheme
	EventsRecorder record.EventRecorder
}

OffloadedPodReconciler manage offloaded pods lifecycle.

func NewOffloadedPodReconciler

func NewOffloadedPodReconciler(cl client.Client, s *runtime.Scheme, er record.EventRecorder) *OffloadedPodReconciler

NewOffloadedPodReconciler returns a new OffloadedPodReconciler.

func (*OffloadedPodReconciler) Reconcile

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

Reconcile reconciles on offloaded pods.

func (*OffloadedPodReconciler) SetupWithManager

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

SetupWithManager monitors updates on nodes.

Jump to

Keyboard shortcuts

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