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

Dynamic values patch improvements #419

Closed nabokihms closed 11 months ago

nabokihms commented 11 months ago

Overview

There are some problems with the ApplyModuleDynamicValuesPatch:

What this PR does / why we need it

For the first issue, we can compose a patch set before applying it so all the values struct will be marshaled only once for all patches. For the second problem, we can store an object we want to add / change as a raw json message, so the patch is marshaled only once when returned (or not marshalled at all for python / bash hooks).

Special notes for your reviewer