Skip to content

Conversation

@songy23
Copy link
Member

@songy23 songy23 commented Jan 13, 2026

What does this PR do?

Add more configs to otel agent gateway matching the implementation in helm charts: http://github.com/DataDog/helm-charts/blob/main/charts/datadog/templates/otel-agent-gateway-deployment.yaml. Namely:

  1. Replicas
  2. NodeSelector
  3. Affinity
  4. Tolerations
  5. PriorityClassName
  6. Env
  7. EnvFrom
  8. Image
  9. FeatureGates

Motivation

Implement otel agent gateway in operator.

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: vX.Y.Z
  • Cluster Agent: vX.Y.Z

Describe your test plan

For QA, use examples/datadogagent/datadog-agent-with-otelagentgateway.yaml. You can tweak the parameters based on your needs. Verify the node selector, affinity, labels, replicas etc. in the otel agent gateway deployment and pods are expected.

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)

@songy23 songy23 added this to the v1.23.0 milestone Jan 13, 2026
@songy23 songy23 added the enhancement New feature or request label Jan 13, 2026
@songy23 songy23 changed the title [[OTAGENT-512]] Add more configs to otel agent gateway [OTAGENT-512] Add more configs to otel agent gateway Jan 13, 2026
@codecov-commenter
Copy link

codecov-commenter commented Jan 13, 2026

Codecov Report

❌ Patch coverage is 28.70370% with 77 lines in your changes missing coverage. Please review.
✅ Project coverage is 38.30%. Comparing base (08c7140) to head (81e0cda).

Files with missing lines Patch % Lines
pkg/testutils/builder.go 0.00% 36 Missing ⚠️
...r/datadogagent/feature/otelagentgateway/feature.go 57.40% 21 Missing and 2 partials ⚠️
...datadogagent/component/otelagentgateway/default.go 0.00% 9 Missing ⚠️
...troller/datadogagent/component_otelagentgateway.go 0.00% 6 Missing ⚠️
...datadogagentinternal/component_otelagentgateway.go 0.00% 3 Missing ⚠️

❌ Your patch status has failed because the patch coverage (28.70%) is below the target coverage (80.00%). You can increase the patch coverage or adjust the target coverage.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #2490      +/-   ##
==========================================
- Coverage   38.34%   38.30%   -0.05%     
==========================================
  Files         300      300              
  Lines       25544    25652     +108     
==========================================
+ Hits         9795     9826      +31     
- Misses      15005    15080      +75     
- Partials      744      746       +2     
Flag Coverage Δ
unittests 38.30% <28.70%> (-0.05%) ⬇️

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

Files with missing lines Coverage Δ
...datadogagentinternal/component_otelagentgateway.go 0.00% <0.00%> (ø)
...troller/datadogagent/component_otelagentgateway.go 38.88% <0.00%> (-4.87%) ⬇️
...datadogagent/component/otelagentgateway/default.go 0.00% <0.00%> (ø)
...r/datadogagent/feature/otelagentgateway/feature.go 80.44% <57.40%> (-9.96%) ⬇️
pkg/testutils/builder.go 0.00% <0.00%> (ø)

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 08c7140...81e0cda. Read the comment docs.

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

@songy23 songy23 force-pushed the yang.song/OTAGENT-512-1 branch from 5b56f18 to 81e0cda Compare January 15, 2026 13:17
@songy23 songy23 marked this pull request as ready for review January 15, 2026 13:36
@songy23 songy23 requested review from a team as code owners January 15, 2026 13:36
@songy23 songy23 marked this pull request as draft January 15, 2026 13:46
@songy23
Copy link
Member Author

songy23 commented Jan 15, 2026

Talked offline, will take a look at override to check if new configs are already supported

@songy23 songy23 force-pushed the yang.song/OTAGENT-512-1 branch from 81e0cda to 54d666b Compare January 15, 2026 15:28
@songy23 songy23 force-pushed the yang.song/OTAGENT-512-1 branch from 54d666b to 02121d5 Compare January 15, 2026 16:14
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.

3 participants