Skip to content

charts: index on a nil _cluster fails the render before the cluster-domain default applies #4046

Open

Description

Twelve templates across clickhouse, foundationdb, kubernetes, mongodb, nats, opensearch and qdrant read the cluster domain as

{{- $clusterDomain := (index .Values._cluster "cluster-domain") | default "cozy.local" }}

index on a nil map is a hard render error, so the default never runs when _cluster is absent: helm template without the platform-injected _cluster block fails with index of untyped nil instead of falling back to cozy.local. On a platform install _cluster is always injected through the values Secret, so the failure surfaces in local renders and in helm-unittest suites that do not inject the key, not in production. mariadb already guards it the way the rest should:

{{- $cluster := .Values._cluster | default (dict) }}
{{- $clusterDomain := (index $cluster "cluster-domain") | default "cozy.local" }}

One sweep over the twelve reads, plus a unit case per chart that renders without _cluster, closes it.

Activity

  1. added
    kind/cleanupCategorizes issue or PR as related to cleanup of code, process, or technical debt
    area/databaseIssues or PRs related to managed databases (postgres, mariadb, redis, etcd, kafka, clickhouse)
    on Sep 2, 2026
  2. added
    triage/acceptedIndicates an issue is ready to be actively worked on
    priority/backlogGeneral backlog priority. Lower than priority/important-longterm
    and removed
    triage/needs-triageIndicates an issue needs triage by a maintainer
    on Sep 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/databaseIssues or PRs related to managed databases (postgres, mariadb, redis, etcd, kafka, clickhouse)kind/cleanupCategorizes issue or PR as related to cleanup of code, process, or technical debtpriority/backlogGeneral backlog priority. Lower than priority/important-longtermtriage/acceptedIndicates an issue is ready to be actively worked on

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions