Skip to content

Add shared dependencies#3183

Open
khewonc wants to merge 2 commits into
mainfrom
khewonc/dap-deps
Open

Add shared dependencies#3183
khewonc wants to merge 2 commits into
mainfrom
khewonc/dap-deps

Conversation

@khewonc

@khewonc khewonc commented Jun 22, 2026

Copy link
Copy Markdown
Collaborator

What does this PR do?

Add shared dependencies. Dependencies that can be configured by both DDA and DDAIs and are 1 per cluster are "shared" dependencies since we can't create 1 per DDA/DDAI. These are things like local service for APM/DSD and eventually seccomp profile configmap

Motivation

https://datadoghq.atlassian.net/browse/CONTP-1762

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

Create a DDA and DAP with hostports set to different values:

# dda
    features:
      apm:
        enabled: true
        hostPortConfig:
          enabled: true
          hostPort: 8126
# dap
    features:
      apm:
        enabled: true
        hostPortConfig:
          enabled: true
          hostPort: 8127

The DDA value 8126 should be in the resulting service (kubectl get svc <local-agent-svc-name>). In the operator logs, you will see this warning: {"level":"INFO","ts":"2026-06-22T21:52:27.009Z","msg":"Ignoring conflicting DDA shared Service port","DatadogAgent":{"name":"datadog-agent","namespace":"default"},"namespace":"default","name":"datadog-agent","reconcileID":"f32796df-aed9-4848-8603-fcd6e671a0ad","datadogagentinternal_namespace":"default","datadogagentinternal_name":"dap-test","reason":"apm DDA shared dependencies failed: unable to add ports to Service datadog-agent-agent: port \"traceport\" conflicts with existing port: service port conflict"}

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)

@khewonc khewonc added this to the v1.29.0 milestone Jun 22, 2026
@khewonc khewonc requested a review from a team June 22, 2026 22:03
@khewonc khewonc requested review from a team as code owners June 22, 2026 22:03
@khewonc khewonc added the enhancement New feature or request label Jun 22, 2026
@khewonc khewonc requested review from mackjmr and removed request for a team June 22, 2026 22:03

@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: 168e9297b9

ℹ️ 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 internal/controller/datadogagent/dependencies.go Outdated
@datadog-prod-us1-5

datadog-prod-us1-5 Bot commented Jun 22, 2026

Copy link
Copy Markdown

Code Coverage

Fix all issues with BitsAI

🛑 Gate Violations

🎯 1 Code Coverage issue detected

A Patch coverage percentage gate may be blocking this PR.

Patch coverage: 29.67% (threshold: 80.00%)

ℹ️ Info

🎯 Code Coverage (details)
Patch Coverage: 29.67%
Overall Coverage: 44.18% (-0.08%)

Useful? React with 👍 / 👎

This comment will be updated automatically if new data arrives.
🔗 Commit SHA: 81d283c | Docs | Datadog PR Page | Give us feedback!

@khewonc khewonc force-pushed the khewonc/dap-deps branch from 168e929 to 81d283c Compare June 23, 2026 20:11
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.

1 participant