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

make sure all hooks have a hook controller set #455

Closed miklezzzz closed 7 months ago

miklezzzz commented 7 months ago

Overview

Adds additional boolean status field controllersReady to HooksStorage and uses it to decide if it's OK to run a module's hooks.

What this PR does / why we need it

It prevents a panic in a rare situation when HandleKubeEvent/HandleScheduleEvent is evoked for a module before the module's hooks get their HookControllers set.

Special notes for your reviewer