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 PodResources mount to agent #1650

Merged
merged 5 commits into from
Feb 5, 2025

Conversation

gjulianm
Copy link
Collaborator

@gjulianm gjulianm commented Feb 3, 2025

What does this PR do?

This PR adds the mount for the PodResources socket.

Motivation

The pod resources API is necessary for correctly assigning pods to GPU devices in GPU monitoring.

Additional Notes

Anything else we should know when reviewing?

Minimum Agent Versions

Are there minimum versions of the Datadog Agent and/or Cluster Agent required?

  • Agent: v7.62

Describe your test plan

Tested locally by deploying the operator in a cluster, deploying an agent with default settings and ensuring that:

  • The agent container has a mount for /var/lib/kubelet/pod-resources/kubelet.sock
  • The environment variable DD_KUBERNETES_KUBELET_POD_RESOURCES_SOCKET is correctly set to /var/lib/kubelet/pod-resources/kubelet.sock.

Checklist

  • PR has at least one valid label: bug, enhancement, refactoring, documentation, tooling, and/or dependencies
  • PR has a milestone or the qa/skip-qa label

@gjulianm gjulianm self-assigned this Feb 3, 2025
@gjulianm gjulianm force-pushed the guillermo.julian/pod-resources-socket branch from 9d61da1 to b9e0baf Compare February 3, 2025 18:11
@gjulianm gjulianm added the enhancement New feature or request label Feb 3, 2025
@gjulianm gjulianm added this to the v1.12.0 milestone Feb 3, 2025
@gjulianm gjulianm marked this pull request as ready for review February 3, 2025 18:14
@gjulianm gjulianm requested review from a team as code owners February 3, 2025 18:14
@estherk15 estherk15 self-assigned this Feb 3, 2025
@codecov-commenter
Copy link

codecov-commenter commented Feb 4, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 49.25%. Comparing base (8b4ebea) to head (1ede209).

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #1650      +/-   ##
==========================================
+ Coverage   49.17%   49.25%   +0.08%     
==========================================
  Files         218      218              
  Lines       21033    21069      +36     
==========================================
+ Hits        10342    10378      +36     
  Misses      10150    10150              
  Partials      541      541              
Flag Coverage Δ
unittests 49.25% <100.00%> (+0.08%) ⬆️

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

Files with missing lines Coverage Δ
...ller/datadogagent/defaults/datadogagent_default.go 91.38% <100.00%> (+0.13%) ⬆️
...nternal/controller/datadogagent/override/global.go 56.52% <100.00%> (+3.99%) ⬆️
pkg/testutils/builder.go 91.64% <100.00%> (+0.01%) ⬆️

Continue to review full report in Codecov by Sentry.

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

@swang392 swang392 modified the milestones: v1.12.0, v1.13.0 Feb 4, 2025
@gjulianm
Copy link
Collaborator Author

gjulianm commented Feb 5, 2025

/merge

@dd-devflow
Copy link

dd-devflow bot commented Feb 5, 2025

Devflow running: /merge

View all feedbacks in Devflow UI.


2025-02-05 10:22:05 UTC ℹ️ MergeQueue: pull request added to the queue

The median merge time in main is 17m.


2025-02-05 10:38:25 UTC ℹ️ MergeQueue: This merge request was merged

@dd-mergequeue dd-mergequeue bot merged commit e2211d6 into main Feb 5, 2025
26 checks passed
@dd-mergequeue dd-mergequeue bot deleted the guillermo.julian/pod-resources-socket branch February 5, 2025 10:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants