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

Add /var/log/containers to the list of mounted paths. #310

Merged
merged 1 commit into from
Jul 22, 2021

Conversation

remeh
Copy link
Contributor

@remeh remeh commented May 20, 2021

What does this PR do?

Mount volume /var/log/containers. If it contains symlinks to logs of container running in a pod, the Datadog Agent (>= 7.29.0) could use it to validate what container it is tailing logs for.

Motivation

Improve the logs file scanning for short-lived containers.

Additional Notes

It is a best-effort, if not available / not containing symlinks, the Datadog Agent won't use /var/log/containers.

Describe your test plan

See DataDog/datadog-agent#8143 test plan.

@remeh remeh requested review from a team as code owners May 20, 2021 12:06
Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

This pull request does not contain a valid label. Please add one of the following labels: bug, enhancement, documentation

@codecov-commenter
Copy link

codecov-commenter commented May 20, 2021

Codecov Report

Merging #310 (d3af1b0) into main (caf191d) will increase coverage by 0.09%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #310      +/-   ##
==========================================
+ Coverage   63.49%   63.58%   +0.09%     
==========================================
  Files          61       61              
  Lines        6686     6704      +18     
==========================================
+ Hits         4245     4263      +18     
  Misses       2134     2134              
  Partials      307      307              
Flag Coverage Δ
unittests 63.58% <100.00%> (+0.09%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
api/v1alpha1/datadogagent_types.go 100.00% <ø> (ø)
api/v1alpha1/datadogagent_default.go 79.37% <100.00%> (+0.11%) ⬆️
controllers/datadogagent/utils.go 83.59% <100.00%> (+0.17%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update caf191d...d3af1b0. Read the comment docs.

@remeh remeh added the enhancement New feature or request label May 20, 2021
Copy link
Contributor

@ruthnaebeck ruthnaebeck left a comment

Choose a reason for hiding this comment

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

👍 for docs

@clamoriniere clamoriniere merged commit ba84e08 into main Jul 22, 2021
@clamoriniere clamoriniere deleted the remeh/containersymlinkspath branch July 22, 2021 13:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants