Skip to content

feat(chelm): resolve ${image_name} and ${registry_repo_prefix} in tests - #482

Merged
Rodrigo-Munoz-Salas merged 1 commit into
chainguard-dev:mainfrom
Rodrigo-Munoz-Salas:rodrigomunoz/chelm-marker-resolve
Sep 16, 2026
Merged

Rodrigo-Munoz-Salas merged 1 commit into
chainguard-dev:mainfrom
Rodrigo-Munoz-Salas:rodrigomunoz/chelm-marker-resolve

Conversation

@Rodrigo-Munoz-Salas

Copy link
Copy Markdown
Contributor

Summary

Teaches chelm's test resolver to substitute the two markers added
upstream in chainguard.dev/sdk v0.1.270 (${image_name} and
${registry_repo_prefix}). The previous sdk dep bump was incomplete —
chelm test's resolveField switch had no cases for the new fields,
so downstream chart tests that use the split hub/image/tag shape
failed with empty image renders.

Follows #478.

Test plan

  • go build ./... and go test ./... pass in the chelm module.
  • Downstream: chainguard-dev/stereo#335562's elastic-build test
    pipeline goes green once a new tw release ships and stereo's
    os/tw.yaml auto-bumps.

🤖 Generated with Claude Code

The previous sdk bump made `chelm generate` accept the two new markers
at build time, but testResolver silently returned "" for them —
downstream chart tests using the split hub/image/tag shape rendered
empty image fields.

Example that now resolves under TestParams{Registry:"cgr.test",
Repository:"chainguard/test"}:

    global:
      hub: ${registry_repo_prefix}   # cgr.test/chainguard/test
      proxy:
        image: ${image_name}         # <lowercased imageID>

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@Rodrigo-Munoz-Salas
Rodrigo-Munoz-Salas merged commit 14ebdda into chainguard-dev:main Sep 16, 2026
3 checks passed
@Rodrigo-Munoz-Salas
Rodrigo-Munoz-Salas deleted the rodrigomunoz/chelm-marker-resolve branch September 16, 2026 14:50
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.

2 participants