Skip to content

entrypoint.sh not working as expected #368

@alpha-er

Description

@alpha-er

After release 12.6.5290, the entrypoint.sh script doesn't seem to work in terms of placing values in conf.d files bases on environment variables.

For example, 12.6.5290 dd-agent image places the KUBERNETES* env values into /etc/dd-agent/conf.d/kubernetes.yaml:

docker run --rm -it \
  -e 'KUBERNETES=yes' \
  -e 'KUBERNETES_COLLECT_EVENTS=yes' \
  -e 'KUBERNETES_NAMESPACE_NAME_REGEX=blue' \
  datadog/docker-dd-agent:12.6.5290 /bin/bash

root@0364e253be2d:/# cat /etc/dd-agent/conf.d/kubernetes.yaml | grep -v '#'
init_config:

instances:

 - port: 4194



   collect_events: true



   namespace_name_regexp: blue

While in the next release, 12.6.5300, it doesn't:

docker run --rm -it \
  -e 'KUBERNETES=yes' \
  -e 'KUBERNETES_COLLECT_EVENTS=yes' \
  -e 'KUBERNETES_NAMESPACE_NAME_REGEX=blue' \
  datadog/docker-dd-agent:12.6.5300 /bin/bash

root@6b9b1ab209a5:/# cat /etc/dd-agent/conf.d/kubernetes.yaml | grep -v '#'
init_config:



instances:


  - port: 4194

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions