Skip to content

discovery: remove networkStats option#3117

Merged
tbavelier merged 1 commit into
mainfrom
yumasi/remove-network-stats-config
Jun 10, 2026
Merged

discovery: remove networkStats option#3117
tbavelier merged 1 commit into
mainfrom
yumasi/remove-network-stats-config

Conversation

@Yumasi

@Yumasi Yumasi commented Jun 9, 2026

Copy link
Copy Markdown
Member

What does this PR do?

Follow-up to #2822, this PR finally removes the discovery network stats option from the operator.

Motivation

DSCVR-416

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?

No.

Describe your test plan

N/A

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
  • All commits are signed (see: signing commits)

@codecov-commenter

codecov-commenter commented Jun 9, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 43.48%. Comparing base (34b1fdb) to head (0db3138).

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #3117   +/-   ##
=======================================
  Coverage   43.48%   43.48%           
=======================================
  Files         352      352           
  Lines       30020    30020           
=======================================
  Hits        13053    13053           
  Misses      16095    16095           
  Partials      872      872           
Flag Coverage Δ
unittests 43.48% <ø> (ø)

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


Continue to review full report in Codecov by Harness.

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@datadog-official

This comment has been minimized.

@Yumasi
Yumasi marked this pull request as ready for review June 10, 2026 08:30
@Yumasi
Yumasi requested a review from a team June 10, 2026 08:30
@Yumasi
Yumasi requested review from a team as code owners June 10, 2026 08:30

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 0db3138f8c

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread config/crd/bases/v1/datadoghq.com_datadogagents.yaml
@tbavelier
tbavelier merged commit d06e2cb into main Jun 10, 2026
48 checks passed
@tbavelier
tbavelier deleted the yumasi/remove-network-stats-config branch June 10, 2026 13:25
tbavelier pushed a commit that referenced this pull request Jun 10, 2026
(cherry picked from commit d06e2cb)

Co-authored-by: Guillaume Pagnoux <[email protected]>
levan-m added a commit that referenced this pull request Jul 17, 2026
…et guard

The embedded mapping table had drifted from the authoritative helm-charts
copy (charts/datadog/files/...). Reconcile the two into one byte-identical
table: port the 238 mappings the operator copy already had into helm-charts,
add the newer helm keys, and on the 2 conflicting keys keep the helm-charts
target (the operator copy was stale). Coverage goes from 132 to 366 mapped
keys. Also reset the stale datadog.discovery.networkStats.enabled mapping,
whose CRD field was removed in #3117.

Add TestMappingTargetsExistInCRD, which validates every mapping target against
the DatadogAgent v2alpha1 CRD schema and fails the build on a dead path (the
kind of rot the networkStats mapping was).

Environment: Datadog workspace

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
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.

3 participants