Skip to content

fix(chart-release): pass the manifest media type when aliasing charts - #27

Merged
blairham merged 1 commit into
mainfrom
fix/chart-sha-alias-media-type
Jul 2, 2026
Merged

fix(chart-release): pass the manifest media type when aliasing charts#27
blairham merged 1 commit into
mainfrom
fix/chart-sha-alias-media-type

Conversation

@blairham

@blairham blairham commented Jul 2, 2026

Copy link
Copy Markdown
Contributor

Summary

  • The chart X.Y.Z-<sha7> alias from feat(release): notify Dispatch directly on publish + chart sha alias #24 never succeeded: helm's OCI manifests omit the optional top-level mediaType, and put-image without --image-manifest-media-type rejects them with a misleading Invalid JSON syntax (warn-only, so releases stayed green — understudy run 28622131130 shows the warning).
  • Also hardened the extraction: --output json | jq -ej to a file:// manifest — -j keeps the manifest byte-exact so ECR aliases the same image (a trailing newline changes the digest and stores a second image), -e hard-fails on a null lookup instead of passing the literal null to put-image.

Test plan

  • Root cause reproduced and the exact fixed pipeline validated live against charts/understudy:0.0.7 — first attempt without media type fails identically to CI; with media type + jq -ej the alias lands on the same digest (141e02…) and describe-images shows both tags on one image (0.0.7, 0.0.7-404e9df)
  • actionlint clean
  • Post-merge: next chart release shows no sha alias tag failed warning and the -<sha7> tag appears alongside the version

🤖 Generated with Claude Code

helm's OCI manifests omit the optional top-level mediaType field, and
put-image without --image-manifest-media-type rejects them with a
misleading "Invalid JSON syntax" — every sha alias since the step
landed failed (warn-only, so releases stayed green). Also extract the
manifest with jq -ej to a file: -j keeps the bytes exact so ECR
aliases the same image instead of storing a trailing-newline variant
as a second one, and -e fails the pipeline on a null lookup instead
of passing the literal "null" on.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@blairham
blairham merged commit b71080b into main Jul 2, 2026
2 checks passed
@blairham
blairham deleted the fix/chart-sha-alias-media-type branch July 5, 2026 14:36
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