cerc-io / stack-orchestrator

Read-only mirror of https://git.vdb.to/cerc-io/stack-orchestrator
https://git.vdb.to/cerc-io/stack-orchestrator
GNU Affero General Public License v3.0
29 stars 19 forks source link

Remote container tag in k8s deployments is not unique #733

Closed dboreham closed 4 months ago

dboreham commented 4 months ago

We generate a "remote" tag for each SO-supplied container in a k8s deployment. Unfortunately the tag is only unique as far as its name. This means that multiple concurrent deployments of the same stack, for example, will get the same image tags. The behavior would be wrong and definitely confusing because the last pushed image would be used on any pull event. It makes deploying a staging and production stack side by side problematic.

Resolve by mixing in some entropy from the deployment id into the remote image tag names.