ml-tooling / contaxy

MIT License
10 stars 8 forks source link

Store deployment metadata in json DB #38

Closed JNKielmann closed 2 years ago

JNKielmann commented 2 years ago

At the moment metadata of deployments is only stored directly on the deployed containers/pods (as labels). As a result, this data will be lost once the container/pod is deleted. This PR stores the metadata of each deployment in the internal JSON DB so it is available even if the underlying container/pod was removed. This provides some advantages:

This functionality is implemented in a wrapper class DeploymentManagerWithDB that builds on top of one of the existing deployment managers (Docker and Kubernetes). This replaces the old DeploymentManager which served as a base class for the Docker and Kubernetes managers.

Some implementation notes: