[BYOCAPM-159] Add DatadogBYOCCluster spec.signal for traces clusters #3576
All Vouch review confidence checks passed
Residual risk 0.19 = Change Risk (0.48) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.48 · 515 lines diff across 6 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.374
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #3576"
general
weight: 0.35
fpddog
Why
A BYOC APM cluster needs CloudPrem's traces index, but the operator's default node config hardcodes
create_dd_traces_index: false. Today that means hand-writingnodeConfigOverrides. This lets aDatadogBYOCClusterdeclare the signal it stores instead. A BYOC cluster stores one signal: customers run one traces cluster next to their logs clusters.Intent and context: BYOCAPM-159
What changed
spec.signalonDatadogBYOCCluster:logs | traces, defaultlogs. Kubebuilder enum + default markers only, no CEL (validation stays in the reconciler, per the #3501 review). Named after the CloudPrem Helm chart'ssignals.logs→create_dd_logs_index: true,create_dd_traces_index: false;traces→ the reverse. Both keys are always written, because CloudPrem treats a missingcreate_dd_logs_indexastrue. They're applied beforenodeConfigOverrides, so a user override still wins.Impact
signal, orsignal: logs) render the same node config as today.spec.signalimmutable (BYOCAPM-160). For now, switching an existing cluster's signal is not blocked.Test plan
TestBuildResources_ConfigMap, full node config compared): default andlogs→ logstrue/ tracesfalse;traces→ logsfalse/ tracestrue;traces+ override → override winsmake generate && make manifestscleandatadog-spansand nodatadoglogs index;spec.signalschemaEKS test (2026-10-12)
Ran a local build of this PR merged with #3562 (the controller) against EKS
byoc-apm-clusterin the BYOC APM dev AWS account, connected to the datad0g BYOC APM staging org. Full write-up with manifests, evidence and observations: https://chonk.us1.prod.dog/v3/francisco.paulo/byoc-pr-3576-eks-traces-test.html (AppGate).Summary of the steps:
1. Installed only the two BYOC CRDs (no
make install, which would overwrite the cluster's Helm-managed DatadogAgent CRD).2. Isolated the test from the existing Helm-based BYOC APM setup in the same cluster: own namespace, a temporary tainted node group, a throwaway Postgres metastore, and a separate S3 prefix.
3. Ran the operator out of cluster, watching only the test namespace, with the Agent controller off.
4. Applied a
DatadogBYOCClusterwithtype: traces(nowsignal: traces),site: datad0g.com, and CloudPremcp-rc-v0.1.34.| Check | Result |
|---|---|
| Rendered node config |
create_dd_traces_index: true✅ || Reconcile |
ReconciledandAvailableconditionsTrue, all CloudPrem pods ready ✅ || Traces index | CloudPrem logged
creating Datadog traces index 'datadog-spans'; index list includesdatadog-spans✅ || Datadog | Cluster shows as Connected (reverse connection) in the staging org ✅ |
|
traces→logs→traces(field nowsignal) | Config flips tofalseand back, pods roll ✅ ||
type: foo(nowsignal) | Rejected:Unsupported value: "foo": supported values: "logs", "traces"✅ || Existing setup in the cluster | Unaffected ✅ |
Not covered: spans end to end (the operator can't create a traces OP Worker yet), and type immutability (BYOCAPM-160).
[BYOCAPM-159]: https://datadoghq.atlassian.net/browse/BYOCAPM-159?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ
[BYOCAPM-160]: https://datadoghq.atlassian.net/browse/BYOCAPM-160?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ