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

Support /conf.d in cluster-agent image #2896

Merged
merged 1 commit into from
Jan 23, 2019
Merged

Support /conf.d in cluster-agent image #2896

merged 1 commit into from
Jan 23, 2019

Conversation

xvello
Copy link
Contributor

@xvello xvello commented Jan 16, 2019

What does this PR do?

As cluster-check configurations will be supported as yaml files for out-of-cluster resources, port the agent's support of the /conf.d folder to the cluster-agent image.

@@ -13,6 +13,9 @@ if [[ -z "$DD_API_KEY" ]]; then
exit 1
fi

##### Copy the custom confs #####
find /conf.d -name '*.yaml' -exec cp --parents -fv {} /etc/datadog-agent/ \;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can't we target a specific folder for custom config files ? It feels like we might end up copying unexpected files to the datadog-agent folder.

Copy link
Contributor Author

@xvello xvello Jan 16, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This logic is copied from the agent's container, and it handles copying sub-folders. It means:

  • copy every file found in /conf.d to /etc/datadog-agent/conf.d/
  • copy every file found in /conf.d/mysql.d to the new /etc/datadog-agent/conf.d/mysql.d/ folder

@xvello xvello merged commit e156ac8 into master Jan 23, 2019
@xvello xvello deleted the xvello/dca-confd branch January 23, 2019 09:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants