Skip to content

[CU-86b9h9whq] Include chart metadata in pushed OCI manifest#15

Merged
janfaron merged 2 commits into
mainfrom
fix-helm-chart-publish-CU-86b9h9whq
Apr 21, 2026
Merged

[CU-86b9h9whq] Include chart metadata in pushed OCI manifest#15
janfaron merged 2 commits into
mainfrom
fix-helm-chart-publish-CU-86b9h9whq

Conversation

@janfaron
Copy link
Copy Markdown

Summary

Parse the uploaded chart with helm.sh/helm/v3/pkg/chart/loader and use its metadata when pushing:

  • Write Chart.yaml as JSON into the OCI config blob (was {}).
  • Set title, description, version annotations on the manifest (was empty).
  • Derive version tag and chart-name check from Chart.yaml instead of the filename.

## Summary
Parse the uploaded chart with `helm.sh/helm/v3/pkg/chart/loader` and use its metadata when pushing:
- Write `Chart.yaml` as JSON into the OCI config blob (was `{}`).
- Set `title`, `description`, `version` annotations on the manifest (was empty).
- Derive version tag and chart-name check from `Chart.yaml` instead of the filename.
Copy link
Copy Markdown

@mbarkley mbarkley left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My Go coding skills are a bit rusty, but this looks okay to me 😄
PTAL at that linting failure before merging.

@janfaron janfaron merged commit 479c1e7 into main Apr 21, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants