staticroute

package
v0.0.0-...-0f8bab2 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2023 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	//HostNameLabel label to determine hostname
	HostNameLabel = "kubernetes.io/hostname"
)

Functions

func Add

func Add(mgr manager.Manager, options ManagerOptions) error

Add creates a new StaticRoute Controller and adds it to the Manager. The Manager will set fields on the Controller and Start it when the Manager is Started.

Types

type ManagerOptions

type ManagerOptions struct {
	RouteManager             routemanager.RouteManager
	Hostname                 string
	Table                    int
	ProtectedSubnets         []*net.IPNet
	FallbackIPForGwSelection net.IP
	GetGw                    func(net.IP) (net.IP, error)
}

ManagerOptions contains static route management related node properties

type StaticRouteReconciler

type StaticRouteReconciler struct {
	// contains filtered or unexported fields
}

StaticRouteReconciler reconciles a StaticRoute object

func (*StaticRouteReconciler) Reconcile

func (r *StaticRouteReconciler) Reconcile(ctx context.Context, request reconcile.Request) (res reconcile.Result, err error)

Reconcile reads that state of the cluster for a StaticRoute object and makes changes based on the state read and what is in the StaticRoute.Spec

func (*StaticRouteReconciler) SetupWithManager

func (r *StaticRouteReconciler) SetupWithManager(mgr ctrl.Manager) 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