Align OTel collector config mount with Helm#3031
Merged
Merged
Conversation
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #3031 +/- ##
==========================================
+ Coverage 42.20% 42.23% +0.02%
==========================================
Files 337 337
Lines 28953 28957 +4
==========================================
+ Hits 12221 12230 +9
+ Misses 15926 15922 -4
+ Partials 806 805 -1
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report in Codecov by Sentry.
🚀 New features to boost your workflow:
|
agagniere
approved these changes
May 20, 2026
wdhif
approved these changes
May 20, 2026
tbavelier
added a commit
that referenced
this pull request
May 20, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What does this PR do?
Aligns the operator-managed OTel Collector config mount with the Datadog Helm chart defaults.
This updates the node-agent OTel collector feature to:
/etc/otel-agent--config=/etc/otel-agent/otel-config.yamlor--config=/etc/otel-agent/<item.path>otelconfig-otel-configUser-provided
features.otelCollector.conf.configMap.namevalues are still honored as-is.Motivation
The Helm chart mounts
otel-config.yamlunder/etc/otel-agent, while the operator previously mounted the standalone OTel config under/etc/datadog-agent. Matching Helm keeps the generated Kubernetes resources consistent across installation methods and avoids unnecessary differences in theotel-agentconfig path (also matching the required allowlist for GKE Autopilot)Additional Notes
The OTel Agent Gateway config path is not changed in this PR; this only updates the DaemonSet/node-agent OTel collector config handled by
features.otelCollector.Minimum Agent Versions
No new minimum versions introduced by this change.
Describe your test plan
go test ./internal/controller/datadogagent/feature/otelcollectorChecklist
bug,enhancement,refactoring,documentation,tooling, and/ordependenciesqa/skip-qalabel