staticroute

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2023 License: Apache-2.0 Imports: 23 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, commonService commonservice.Service)

Types

type StaticRouteReconciler

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

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