Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

entrypoint.sh not working as expected #368

Open
alpha-er opened this issue Jun 19, 2019 · 0 comments
Open

entrypoint.sh not working as expected #368

alpha-er opened this issue Jun 19, 2019 · 0 comments

Comments

@alpha-er
Copy link

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant