avatar

Kubeedge源码阅读系列--cloudcore.devicecontroller模块

前言 代码基于 kubeedge1.3 模块入口 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 // Start controller func (dc *DeviceController) Start() { downstream, err := controller.NewDownstreamController() if err != nil { klog.Errorf("New downstream controller failed with error: %s", err) os.Exit(1) } upstream, err := controller.NewUpstreamController(downstream) if err != nil { klog.Errorf("new upstream controller failed