Fix a bug in cmd/maesh package where a WaitGroup was getting stuck forever. If the controller failed after the program received a signal (e.g. CTRL-C), the error couldn't be sent to the error chan and would block forever.
Fixes #702
How to test it
Run locally the controller with the MAESH_KUBECONFIG variable set to a k8s cluster with no SMI CRDs. After few seconds, send a signal. It should stop immediately.
What does this PR do?
Fix a bug in
cmd/maesh
package where a WaitGroup was getting stuck forever. If thecontroller
failed after the program received a signal (e.g. CTRL-C), the error couldn't be sent to the error chan and would block forever.Fixes #702
How to test it
MAESH_KUBECONFIG
variable set to a k8s cluster with no SMI CRDs. After few seconds, send a signal. It should stop immediately.