diff --git a/internal/deviceplugin/poolManager.go b/internal/deviceplugin/poolManager.go index bdc490f..ae623be 100644 --- a/internal/deviceplugin/poolManager.go +++ b/internal/deviceplugin/poolManager.go @@ -82,16 +82,16 @@ func (pm *PoolManager) Init(config PoolConfig) error { pm.BpfHandler = bpf.NewHandler() pm.NetHandler = networking.NewHandler() + if err := pm.startGRPC(); err != nil { + return err + } + logging.Infof("Pool "+pm.DevicePrefix+"/%s started serving", pm.Name) + if err := pm.registerWithKubelet(); err != nil { return err } logging.Infof("Pool "+pm.DevicePrefix+"/%s registered with Kubelet", pm.Name) - if err := pm.startGRPC(); err != nil { - return err - } - logging.Infof("Pool "+pm.DevicePrefix+"/%s started serving", pm.Name) - if len(pm.Devices) > 0 { pm.UpdateSignal <- true }