Skip to content

Conversation

JM-Lazaro
Copy link
Contributor

@JM-Lazaro JM-Lazaro commented Jun 17, 2020

What does this PR do?

Modifies the approach to mounting multiple config from a single configmap. Using the current sample encounters this error:

The DaemonSet "datadog-agent" is invalid:
* spec.template.spec.volumes[4].configMap.items[0].path: Invalid value: "/apache.d/conf.yaml": must be a relative path
* spec.template.spec.volumes[4].configMap.items[1].path: Invalid value: "/http_check.d/conf.yaml": must be a relative path
* spec.template.spec.containers[0].volumeMounts[3].name: Not found: "httpd-config-map"

However, even correcting that, the approach simply does not work. The file

# ls -lrt /conf.d/http_check.d/ /etc/datadog-agent/conf.d/http_check.d

/conf.d/http_check.d/:
total 4
-rw-r--r-- 1 root root 162 Jun 17 07:42 auto_conf.yaml

/etc/datadog-agent/conf.d/http_check.d:
total 16
-rw-rw-r-- 1 dd-agent root 14342 Jun 11 23:37 conf.yaml.example
# find . -name auto_conf.yaml | grep http
./conf.d/..2020_06_17_07_42_57.685286965/http_check.d/auto_conf.yaml

Motivation

Preview link

@JM-Lazaro JM-Lazaro requested a review from a team as a code owner June 17, 2020 08:02
@github-actions github-actions bot added the agent Content changed in the Agent folder label Jun 17, 2020
@sarina-dd sarina-dd merged commit 4f3fa95 into master Jun 18, 2020
@sarina-dd sarina-dd deleted the JM-Lazaro/ConfigMap-Multi-Config-Correction branch June 18, 2020 16:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
agent Content changed in the Agent folder
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants