staticroute

package
v0.0.0-...-aba7421 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ResultNormal            = common.ResultNormal
	ResultRequeue           = common.ResultRequeue
	ResultRequeueAfter5mins = common.ResultRequeueAfter5mins
	MetricResType           = common.MetricResTypeStaticRoute
)

Functions

func StartStaticRouteController

func StartStaticRouteController(mgr ctrl.Manager, staticRouteService *staticroute.StaticRouteService)

Types

type StaticRouteReconciler

type StaticRouteReconciler struct {
	Client   client.Client
	Scheme   *apimachineryruntime.Scheme
	Service  *staticroute.StaticRouteService
	Recorder record.EventRecorder
}

StaticRouteReconciler StaticRouteReconcile reconciles a StaticRoute object

func (*StaticRouteReconciler) GarbageCollector

func (r *StaticRouteReconciler) GarbageCollector(cancel chan bool, timeout time.Duration)

GarbageCollector collect staticroute which has been removed from crd. cancel is used to break the loop during UT

func (*StaticRouteReconciler) Reconcile

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

func (*StaticRouteReconciler) Start

func (r *StaticRouteReconciler) Start(mgr ctrl.Manager) error

Start setup manager and launch GC

Jump to

Keyboard shortcuts

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