Use raw manifest to create shared configs and dependencies #3559
<!-- codex-pull-request-review-summary -->
Codex Review Summary
This comment shows the latest Codex review activity on this pull request.
| Review | Status | Commit | Review trigger |
| --- | --- | --- | --- |
| 📝 Code Review | ✅ Completed <relative-time datetime="2026-10-06T14:57:27.230297Z">2026-10-06T14:57:27.230297Z</relative-time> | a9c8914 | PR opened |
<details> <summary>ℹ️ About Codex in GitHub</summary>
<br/>
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.
</details>
<sub><sub>!P2 Badge</sub></sub> Preserve SSI-derived APM enablement before inheriting the base
When the base DDA explicitly disables APM but a profile leaves features.apm.enabled unset and enables instrumentation, assigning the base's false value here masks shouldEnableAPM's rule that enabled SSI implies enabled APM. Consequently the profile's Service port is not added to the validation/shared specs; two such profiles with different host ports are both marked applied, and manageDDADependenciesWithDDAI later fails the entire DDA reconciliation with a Service port conflict instead of rejecting only the conflicting profile. Only inherit the base value when the profile has no feature (such as SSI) that independently enables APM.
Useful? React with 👍 / 👎.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: a9c8914e97
<details> <summary>ℹ️ About Codex in GitHub</summary>
<br/>
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
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".
</details>
<a target='_blank' href='https://app.datadoghq.com/ci/pipeline-executions?query=ci_level%3Ajob+%40ci.status%3Aerror+%40git.commit.sha%3Afac189cf7f2a933fbc6cbde92d0e7781db2dca48&referrer=pr-comment&start=1793913982000'><picture><source media="(prefers-color-scheme: dark)" srcset="https://static.datadoghq.com/static/images/pr_comments/software_delivery/badges_header/pipelines-error.svg"/><img src="https://static.datadoghq.com/static/images/pr_comments/software_delivery/badges_header/pipelines-error-light.svg" alt="Pipelines" align="center" /></picture></a> <a target='_blank' href='https://app.datadoghq.com/ci/code-coverage/github.com%2Fdatadog%2Fdatadog-operator/pull-requests/3559'><picture><source media="(prefers-color-scheme: dark)" srcset="https://static.datadoghq.com/static/images/pr_comments/software_delivery/badges_header/code-coverage-ok.svg"/><img src="https://static.datadoghq.com/static/images/pr_comments/software_delivery/badges_header/code-coverage-ok-light.svg" alt="Code Coverage" align="center" /></picture></a>
❌ Errors
Your PR has failed checks. Please review the issues below and take necessary action before merging.
🚦 2 Pipeline jobs failed
<blockquote>
<div>
<details open>
<summary>DDCI - DataDog/datadog-operator | e2e_autoscaling</summary>
<a href="https://app.datadoghq.com/ci/pull-request/Z2l0aHViLmNvbS9kYXRhZG9nL2RhdGFkb2ctb3BlcmF0b3IvMzU1OQ==?referrer=pr-comment&buildId=AwAAAaGuGpiI5vm9agAAABhBYUd1R3BpSUFBQ3d3cXJTXzQtT1pfXzAAAAAkMDFhMWFlMjctNzU4MC00YmM1LWEzNmQtYWE1N2EwZDM4ZTZlAAAAAA&ciFailurePanel=job">View more details</a> · <a href="https://mosaic.us1.ddbuild.io/change-request/repository/DataDog/datadog-operator/pull/3559/request/4528085301913716284?taskExecutionId=2220502710&taskId=gitlab">View in DDCI</a>
</details>
<details open>
<summary>DataDog/datadog-operator | e2e_autoscaling</summary>
<a href="https://app.datadoghq.com/ci/pull-request/Z2l0aHViLmNvbS9kYXRhZG9nL2RhdGFkb2ctb3BlcmF0b3IvMzU1OQ==?referrer=pr-comment&buildId=AwAAAaGuwIkAGmS07QAAABhBYUd1d0lrQUFBRGZISHZFNXZUZXVJYmQAAAAkMDFhMWFlYzAtZjFkOS00OTU4LWJhODYtNGExMGMzMTY3YmM4AAAF4Q&ciFailurePanel=job">View more details</a> · <a href="https://gitlab.ddbuild.io/DataDog/datadog-operator/-/jobs/2221053698">View in GitLab</a>
</details>
</div>
</blockquote>
ℹ️ Info
🎯 Code Coverage (<a target='_blank' href='https://app.datadoghq.com/ci/code-coverage/github.com%2Fdatadog%2Fdatadog-operator/pull-requests/3559'>details</a>)<br>• <strong><span title="Percentage of modified executable lines covered by tests in this PR">Patch Coverage</span></strong>: 90.45%<br>• <strong><span title="Percentage of all executable lines covered by tests in the entire codebase">Overall Coverage</span></strong>: 57.73% <span title="Change in overall coverage compared to the base branch">(+0.08%)</span><br>
Useful? React with 👍 / 👎
<sub>
This comment will be updated automatically if new data arrives. <br />
🔗 Commit SHA: fac189c | <a href="https://docs.datadoghq.com/integrations/guide/source-code-integration/#pr-comments">Docs</a> | <a href="https://app.datadoghq.com/ci/pull-request/Z2l0aHViLmNvbS9kYXRhZG9nL2RhdGFkb2ctb3BlcmF0b3IvMzU1OQ==?referrer=pr-comment">View more details</a> | Give us <a href="https://dd.enterprise.slack.com/archives/C07E3U2QRMM">feedback</a>!
</sub>
1f176d6f637bb625b934e7dc86d2f881ba474eb9
khewonc
What does this PR do?
Uses the user provided manifest instead of a defaulted manifest to create shared configs and dependencies for profiles and ddas. Previously, we used the defaulted manifest, so we couldn't tell if a config was set by the user or defaulted. For profile overlays, this meant we'd favor a defaulted (but unset) config over a user-set profile config
Motivation
https://datadoghq.atlassian.net/browse/CONTP-2154
Additional Notes
Profiles now apply explicit SSI settings even when
instrumentation.enabledis omitted, instead of ignoring them:DDA
Profile
Before: profile setting ignored
After: profile setting overrides the DDA
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
1. Deploy operator with profiles enabled
2. Create a dda with admission controller, apm, and ssi enabled:
3. Create a profile with language detection disabled and apm host port 9126 enabled:
4. Check that the dap is applied:
kubectl get dap <dap> -o jsonpath='{.status.applied}{"\n"}'should betrue5. Check that language detection is disabled in default and profile ddais:
kubectl get ddai <ddai> -o jsonpath='{.spec.features.apm.instrumentation.languageDetection.enabled}{"\n"}'should befalse6. Check the host ports:
kubectl get ddai -o custom-columns='NAME:.metadata.name,APM_HOST_PORT:.spec.features.apm.hostPortConfig.hostPort'. The profile DDAI should show 9126; the default DDAI should show <none>Checklist
bug,enhancement,refactoring,documentation,tooling, and/ordependenciesqa/skip-qalabel[1]: https://docs.github.com/en/authentication/managing-commit-signature-verification/signing-commits