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
487 stars 27 forks source link

Patch enabledModules only if non-default module loader is in use #482

Closed miklezzzz closed 4 months ago

miklezzzz commented 4 months ago

Overview

Method RefhreshEnabledState logic has been updated to apply /global/enabledModules patch only if non-default module loader is in use by ModuleManager. Otherwise, patch is ignored.

What this PR does / why we need it

In v1.3.6 we've introduced compulsory /global/enabledModules patch that rendered having /global/enabledModules property in the global values schema as mandatory, giving hard times updating global values if /global/enabledModules is absent. This PR removes /global/enabledModules patch if default module loader is in use. Closes #474

Special notes for your reviewer