Add local mode to DatadogObservabilityPipelinesWorker (dev/test only) #3651
All Vouch review confidence checks passed
Residual risk 0.21 = Change Risk (0.52) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.52 · 650 lines diff across 8 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.388
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #3651"
general
weight: 0.35
fpddog
Motivation
DatadogBYOCClusterlets the Datadog Operator bring up a complete BYOC cluster in the user's own environment, including the Observability Pipelines Worker that feeds it. For traces, the operator's job is to get that stack ready to receive pipelines: it deploys and wires the Worker, but it does not create pipelines. Pipelines are authored in Datadog and delivered to the Worker through Remote Config. Until a traces pipeline can be delivered that way, there is no way to run the traces path end to end.This PR fills that gap with a local mode on
DatadogObservabilityPipelinesWorker, for development and testing only: it runs a known pipeline from the Worker spec, leaves Remote Config as the default and the supported path, and may be removed once Remote Config delivery covers this case.It is one of three related PRs:
DatadogBYOCClustercarry the samepipelineConfigand passes it to the Worker the operator creates.What does this PR do?
Setting
spec.pipelineConfigon aDatadogObservabilityPipelinesWorkerto a pipeline in YAML makes the controller render it into a ConfigMap, mount it into the Worker pod and start the Worker with that file, rather than with the pipeline from Remote Config. Everything else about the Worker is unchanged.Key details:
Warningevent with reasonLocalModeDevOnlyon every local-mode reconcile (the CRDs carry no field descriptions, so the event is the signal a cluster user gets)./etc/observability-pipelines-worker/pipelineand achecksum/pipelinepod annotation rolls the pods when it changes (the Worker does not reload the file). The Worker runs with--pipeline-config=... --skip-key-validation, andDD_OP_PIPELINE_IDispipelineIDif given, otherwise the Worker UID.pipelineIDbecomes optional in the CRD schema (it lives on a struct shared withDatadogBYOCClustercomponents.pipelines[]). Validation is in Go: a Worker needspipelineIDorpipelineConfig,pipelineConfigmust be a single non-empty YAML mapping, every BYOC pipeline still needspipelineID, and in local mode thepipeline-configvolume name and mounts overlapping the pipeline directory are reserved.createandpatchonevents, added to the generated BYOC role inconfig/rbac/byoc/role.yaml.Additional Notes
--pipeline-configand--skip-key-validationoptions. Without--skip-key-validation, startup validates the pipeline ID against Remote Config and fails. The flag also skips the API key check at startup.pipelineIDand would panic on a Worker without one.createandpatchoneventsto the operator service account, so the warning works with the chart as is. The chart's BYOC ClusterRole is generated fromconfig/rbac/byoc/role.yamland needs a regeneration to include the new rule, for consistency only; tracked as a follow-up.Available=Falseuntil the spec is fixed.Minimum Agent Versions
N/A (no Agent change).
Describe your test plan
pipelineIDcheck.pipelineIDreachesAvailablewith its UID as the pipeline ID; Remote Config → local → edit (checksum changes) → Remote Config (ConfigMap, args, volume, mount and annotation all gone); an unowned<worker>-pipelineConfigMap reportsConflictand survives local mode being turned off; a local-mode Worker gets aLocalModeDevOnlyWarningevent and a Remote Config Worker gets none.make generate manifestsclean,make lint,go test ./...scope,make integration-testspass.pipelineIDreachedAvailable, and patchingpipelineConfigrolled the StatefulSet to a new revision. A sample OTLP traces pipeline passes the Worker'svalidatecommand.Checklist
enhancementqa/skip-qalabel🤖 Generated with Claude Code