Skip to content

datadog.endpointConfigName does not respect fullnameOverride or nameOverride #2593

Description

@sdwa0

Pre-submission Checklist

  • I have searched existing issues and this is not a duplicate
  • This is a Helm chart issue, not a Datadog product/service problem

Helm chart name

datadog

Helm chart version

3.201.7

Bug Report

What happened:

All other ConfigMap name helpers in _helpers.tpl (e.g., agents-useConfigMap-configmap-name, agents.confd-configmap-name, datadog-checksd-configmap-name, etc.) delegate to datadog.fullname, which correctly handles fullnameOverride and nameOverride values.

However, datadog.endpointConfigName constructs its name by concatenating .Release.Name (and chart alias for aliased subchart) directly, bypassing datadog.fullname entirely.

This means that if a user sets fullnameOverride or nameOverride, all other ConfigMaps will use the overridden name prefix, but the endpoint ConfigMap will still use the raw release name, causing an inconsistency.

This behavior was introduced in #2362 (tagging @fanny-jiang for visibility). A similar suggestion was previously made in #2187.

What I expected:

datadog.endpointConfigName should derive its prefix from datadog.fullname (or equivalent logic), consistent with all other ConfigMap name helpers.

Steps to Reproduce

No response

Environment

Kubernetes version:
Helm version:
Cloud provider:

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions