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.
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