Skip to content

feat(chelm): make the test org path and per-case registry configurable - #477

Merged
joshrwolf merged 1 commit into
chainguard-dev:mainfrom
joshrwolf:chelm-dotted-org
Sep 4, 2026
Merged

feat(chelm): make the test org path and per-case registry configurable#477
joshrwolf merged 1 commit into
chainguard-dev:mainfrom
joshrwolf:chelm-dotted-org

Conversation

@joshrwolf

@joshrwolf joshrwolf commented Sep 4, 2026

Copy link
Copy Markdown
Member

chelm test rendered every chart against a hardcoded, dot-free repository path (chainguard/test). a chart whose templates treat a dotted first path segment as a registry hostname will silently drop the registry, and repository paths beginning with a domain name are common in practice — so those charts render pullable refs under chelm test and unpullable ones for real inputs. --test-repository makes the path configurable. the default is unchanged for now: flipping it will legitimately fail charts carrying that heuristic, so it needs a sweep first.

test.cases[].registry is the registry a case's images must resolve under, defaulting to --test-registry. a case that sets a chart's global registry override in values can now assert the override actually took effect, rather than rendering the same refs as the case without it. the repository prefix stays fixed across cases, so an override that stacks onto the host already in the ref — or swallows the first path segment along with it — is rejected too.

charts whose templates treat a dotted first path segment as a registry
hostname silently drop the registry, and repository paths beginning with a
domain name are common in practice. the hardcoded, dot-free `chainguard/test`
hid that from every chart under test. `--test-repository` makes the path a
flag; the default is unchanged, since flipping it will legitimately fail
charts carrying that heuristic.

`test.cases[].registry` is the registry a case's images must resolve under, so
a case that sets a chart's registry override in `values` can assert it took
effect instead of rendering the same refs as the case without it.
@joshrwolf
joshrwolf merged commit c3a0bbf into chainguard-dev:main Sep 4, 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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants