ci: decouple chart version from the deployed image version - #63
me-bender[bot] wants to merge 1 commit into
Conversation
Keep the image tags following the dispatch input while the chart auto-bumps its own patch, so the chart version and the deployed component version are independent.
🌒 Earthly Lunar
|
|
Bender do we still need this? |
|
Short answer: only if you still want the chart version actually independent of the deployed image version. Where things stand:
My take: the blocking problem is already solved, and |
Decouple the chart version from the deployed image version
The
Bump Versionworkflow setChart.yaml's.versionto the dispatchinput — the same value used for the deployed image tags. That tied the
chart's own version to the image version it ships, so the two could never
share a number without colliding.
This change separates the two:
charts/lunar/values.yaml(hub,operator,operator.initImage,operator.sidecarImage,grafana) still follow thedispatch input — they point at the image version being deployed.
Chart.yaml.versionnow auto-bumps its own patch on each run,independent of the input. A bump that only re-points the deployed image is,
by definition, a chart patch.
The image release can still trigger this bump automatically; the two version
lines are simply no longer linked. A run logs
Chart X.Y.Z -> X.Y.(Z+1)alongside the image version it set.
Notes
(
release/chart-<version>), not the input.Chart.yamlversion isn'tX.Y.Z, the workflow fails fastrather than guessing a bump.