teseraio / ensemble

Modular Kubernetes operator to manage the lifecycle of databases
https://ensembleoss.io
Mozilla Public License 2.0
42 stars 1 forks source link

Feature schema #37

Closed ferranbt closed 3 years ago

ferranbt commented 3 years ago

This PR adds a new Schema helper struct to represent any typed configuration: database nodes, computational resources (cpu, mem), storage or database resources (i.e. Rabbitmq vhost).

Before, it used a struct to represent each different field. This approach was more cumbersome to use since it involved too many reflections and many of the function calls to process the configs would take an interface as argument.

vercel[bot] commented 3 years ago

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/tesera/ensemble/7VToxGnBdATR6QL6MnmWKVGkZZMQ
✅ Preview: https://ensemble-git-feature-schema-tesera.vercel.app