Skip to content

bug(nats): explicit tls: null in HelmRelease values panics the template #3611

Closed as not planned

Description

packages/apps/nats/templates/_tls.tpl:12 reads .Values.tls.enabled directly to implement the tri-state. Helm coalescing treats an explicit null as a deletion rather than a request for the chart default, so a HelmRelease sending tls: null wipes the tls: {} default at values.yaml:79 and leaves .Values.tls nil. helm template nats packages/apps/nats --values <file with tls: null> fails with executing "nats.tls.enabled" at <.Values.tls.enabled>: nil pointer evaluating interface {}.enabled.

A tenant whose generated values carry an empty tls key, which is what an API layer emitting all fields including unset ones produces, gets a HelmRelease that never renders, so the release just sits failing on a template error.

Guarding the lookup with a nil-safe read fixes it in one line, and a unit test rendering with tls: null pins it. Worth checking the sibling tri-state helpers for the same dereference, packages/apps/qdrant/templates/_helpers.tpl has the same construct.

Activity

  1. added
    kind/bugCategorizes issue or PR as related to a bug
    area/databaseIssues or PRs related to managed databases (postgres, mariadb, redis, etcd, kafka, clickhouse)
    on Aug 7, 2026
  2. added
    triage/duplicateIndicates an issue is a duplicate of another issue
    and removed
    triage/needs-triageIndicates an issue needs triage by a maintainer
    on Sep 23, 2026
  3. lexfrei commented on Sep 23, 2026

    @lexfrei
    ContributorAuthor

    Duplicate of #3705, which covers nats together with kafka, postgres and qdrant.

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/bugCategorizes issue or PR as related to a bugtriage/duplicateIndicates an issue is a duplicate of another issue

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions