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

add dedicated basic module status - hooks disabled #453

Closed miklezzzz closed 7 months ago

miklezzzz commented 7 months ago

Overview

This pr introduces an additional module state: HooksDisabled. In some situations it makes sense to disable a module hooks (mostly before deleting or when updating the module) and this state would allow reflecting the module status appropriately.

What this PR does / why we need it

Thir pr adds an additional module state HooksDisabled and updates a module state accordingly when the moduleManager's DisableModuleHooks method is invocated.

Special notes for your reviewer