mongodb / helm-charts

Apache License 2.0
99 stars 92 forks source link

CLOUDP-218697: Fix get latest tag #299

Closed josvazg closed 10 months ago

josvazg commented 10 months ago

The bash function get_latest_tag was failing in some cases, detecting older tags as the latest.

This fix changes the way the latest tag is computed so we always get correct results.

Release charts dryrun detects NO skews between latest released chart and latest tag

All Submissions:

josvazg commented 10 months ago

See for example: https://github.com/mongodb/helm-charts/actions/runs/7394981709/job/20117479890

released result: "mongodb/mongodb-atlas-operator        2.0.1           2.0.1       MongoDB Atlas Operator - a Helm chart for insta..."
Looking for versions...
version from tag: 1.9.2
version from chart: 2.0.1
...
released result: "mongodb/community-operator        0.9.0           0.9.0       MongoDB Kubernetes Community Operator       "
Looking for versions...
version from tag: 0.8.3
version from chart: 0.9.0

This provoked errors as it tried to re-release versions already released.