antrea-io / antrea

Kubernetes networking based on Open vSwitch
https://antrea.io
Apache License 2.0
1.67k stars 370 forks source link

Block on stopCh in Run method of controllerMonitor #6708

Closed antoninbas closed 1 month ago

antoninbas commented 1 month ago

The Run method of controllers usually never returns until the stop channel is closed. The controllerMonitor seems to be the exception, as it returns after "initialization", despite the Run method being invoked in a separate goroutine. This leads to a confusing message in the Antrea Controller logs, informing us that AntreaControllerMonitor is shutting down.