Skip to content

fix(ci): publish-charts Helm repo names and empty repo update#32

Open
mhjacks wants to merge 1 commit into
validatedpatterns:mainfrom
mhjacks:fix/publish-charts-helm-repo-names
Open

fix(ci): publish-charts Helm repo names and empty repo update#32
mhjacks wants to merge 1 commit into
validatedpatterns:mainfrom
mhjacks:fix/publish-charts-helm-repo-names

Conversation

@mhjacks
Copy link
Copy Markdown
Contributor

@mhjacks mhjacks commented May 15, 2026

Summary

  • Bug: publish-charts derived Helm repo names from HTTP URLs by stripping the scheme, producing values like stakater.github.io/stakater-charts. Helm rejects / in repo names, so every helm repo add failed. Failures were hidden with || true, then helm repo update ran with zero repos and failed with no repositories found.
  • Also: Only Chart.yaml was scanned, so charts using @alias in Chart.yaml with resolved https://… URLs in Chart.lock never registered a repo.

Changes

  • Collect unique repository values from Chart.yaml and Chart.lock.
  • Add repos with a stable slash-free name (ext- + first 16 hex chars of SHA256 of the URL) and --force-update, without || true.
  • Run helm repo update only when helm repo list -o json has at least one entry (jq length).

Test plan

  • Re-run publish-charts for a chart that depends on https://stakater.github.io/stakater-charts (or any https://host/path index).
  • Confirm the "Build chart dependencies" step adds a repo, runs helm repo update when appropriate, and helm dependency build succeeds.

Made with Cursor

Derive stable repo names without slashes, merge Chart.lock URLs, drop
|| true on helm repo add, and skip helm repo update when no repos exist.

Co-authored-by: Cursor <cursoragent@cursor.com>
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