Skip to content

docs(helm): clarify auto-resolve behavior in chart values comments#1477

Merged
ramizpolic merged 1 commit into
agntcy:mainfrom
z-krunal:docs/helm-values-auto-detection
May 13, 2026
Merged

docs(helm): clarify auto-resolve behavior in chart values comments#1477
ramizpolic merged 1 commit into
agntcy:mainfrom
z-krunal:docs/helm-values-auto-detection

Conversation

@z-krunal
Copy link
Copy Markdown
Contributor

@z-krunal z-krunal commented May 8, 2026

Summary

Updates install/charts/dir/values.yaml comments to accurately describe
the chart's auto-resolve behavior for PostgreSQL host and OCI registry
address. Comment-only changes; no chart behavior change.

Why

The current values.yaml states:

Users must specify ALL values explicitly - there is no auto-detection.

But the helpers in apiserver/templates/_helpers.tpl do auto-detect:

  • chart.postgres.host returns <release>-postgresql.<ns>.svc.cluster.local when postgresql.enabled=true and no explicit host is set
  • chart.oci.registryAddress returns the bundled Zot service when zot.enabled=true
  • chart.oci.repositoryName defaults to "dir" when zot.enabled=true and the field is empty

Hit this while installing dir for the first time — I set host explicitly
per the comment, then later noticed the chart would have auto-resolved it.
Updating the comments so the next person doesn't trip on the same thing.

Changes

  • Replace "no auto-detection" prose in the Database section header
  • Update database.postgres.host field comment
  • Add auto-resolve note to store.oci.registry_address / repository_name (these didn't lie, but were silent about the helper behavior)

Verification

Default helm install:

helm upgrade -i dir oci://ghcr.io/agntcy/dir/helm-charts/dir \
  --version v1.2.0 --namespace agntcy --create-namespace

Works without any host or registry_address override, confirming the
helpers auto-resolve. No keys, defaults, or runtime behavior changed —
no tests affected.

The values.yaml comments for `database.postgres.host` and
`store.oci.registry_address` gave an incomplete (and in one place actively
misleading) picture of how the chart handles host/address resolution.

Specifically:
- The Database configuration block stated "Users must specify ALL values
  explicitly - there is no auto-detection", but `chart.postgres.host` in
  apiserver/templates/_helpers.tpl auto-resolves to the bundled subchart's
  Service when postgresql.enabled=true.
- The OCI store comments did not mention that `chart.oci.registryAddress`
  auto-resolves to the bundled Zot subchart, or that repository_name
  defaults to "dir" in that case.

Update the comments to describe what the chart actually does: explicit
value wins, otherwise auto-resolve from the subchart.

No behavior change.

Signed-off-by: Krunal Sabnis <211486092+z-krunal@users.noreply.github.com>
@z-krunal z-krunal requested a review from a team as a code owner May 8, 2026 14:39
@github-actions github-actions Bot added the size/XS Denotes a PR that changes 0-49 lines label May 8, 2026
@codecov
Copy link
Copy Markdown

codecov Bot commented May 13, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@ramizpolic ramizpolic merged commit c58bc4a into agntcy:main May 13, 2026
57 of 59 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/XS Denotes a PR that changes 0-49 lines

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants