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
Click to show internal directories.
Click to hide internal directories.