iter8-tools / iter8

Kubernetes release optimizer
https://iter8.tools
Apache License 2.0
253 stars 34 forks source link

Possible storage client interface changes #1581

Open Alan-Cha opened 11 months ago

Alan-Cha commented 11 months ago

We continue to extend the interface with more and more functions to retrieve and save data based on different keys.

Should we consider only having a single method in the interface, generic retrieve and send data methods based on an arbitrary key?

Then, we can create a wrapper for the interface that can utilize the generic retrieve and send data methods for all the different keys.

This may simplify the design of the interface and make it easier to implement the method for other databases. However, we do not know realistically how often users will implement the interface for other databases and whether or not this generic function makes sense for those other databases.