flant / addon-operator

A system to manage additional components for Kubernetes cluster in a simple, consistent and automated way.
https://flant.github.io/addon-operator/
Apache License 2.0
483 stars 27 forks source link

fix module converge on extender update #486

Closed miklezzzz closed 3 months ago

miklezzzz commented 3 months ago

Overview

This pr slightly updates ModuleManagerEventHandler's logic regarding processing events from Dynamic Extender. Also, it bumps shell-operator to v1.4.9.

What this PR does / why we need it

The point is that we have to check the operator's converge Phase before deciding if we can put converge restart task in the beginning of the main queue. If converge hasn't start yet, it's highly likely there are some global hooks tasks in the main queue and we should let them run before restarting the converge process. Otherwise, some global values may be missing and restarting the converge ends up in a failure.

Special notes for your reviewer