Skip to content

fix(ci): stamp helmchart.yaml chartVersion at release time#24

Merged
aa-replicated merged 2 commits into
mainfrom
fix/helmchart-version-dynamic
Apr 10, 2026
Merged

fix(ci): stamp helmchart.yaml chartVersion at release time#24
aa-replicated merged 2 commits into
mainfrom
fix/helmchart-version-dynamic

Conversation

@aa-replicated
Copy link
Copy Markdown
Owner

@aa-replicated aa-replicated commented Apr 10, 2026

Summary

Fixes two errors caused by a chartVersion mismatch:

  • Could not find helm archive for chart 'gameshelf' version ''
  • Could not find helm chart manifest for archive 'gameshelf-0.1.43.tgz'

Root cause: Two things were wrong:

  1. helmchart.yaml shipped with chartVersion: "". Replicated requires this to exactly match the packaged .tgz archive version (per the HelmChart v2 docs), but the version is only known at CI time.
  2. .replicated had a helm-charts section that was generating a conflicting HelmChart CR with no version, which was the original source of the mismatch.

Fix:

  • Remove helm-charts from .replicatedhelmchart.yaml is now the explicit HelmChart CR
  • After copying helmchart.yaml to release/, stamp the correct version in with sed:
    • release.yml uses ${{ env.VERSION }} (e.g. 0.1.43)
    • pr.yml uses ${{ env.CHART_VERSION }} (e.g. 0.0.43)

🤖 Generated with Claude Code

aa-replicated and others added 2 commits April 9, 2026 23:41
The HelmChart manifest must have a chartVersion matching the packaged
archive. Replicated cannot match them when the field is empty, causing
helm-archive-missing and helm-chart-missing errors.

After copying helmchart.yaml to release/, use sed to replace the empty
chartVersion with the build version before the release is created.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…yaml

The helm-charts section was generating a conflicting HelmChart CR with
no chartVersion, causing the helm-archive-missing errors. helmchart.yaml
(kots.io/v1beta2) is now the explicit source of truth for the chart CR.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@aa-replicated aa-replicated merged commit ee51061 into main Apr 10, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant