Move FHP config to CRD #3591
All Vouch review confidence checks passed
Residual risk 0.37 = Change Risk (0.69) × (1 − Review Confidence (0.47)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.69 · 469 lines diff across 5 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 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.368
Shallow Review Depth
shallow_review_depth
0.344
Sensitive Paths
sensitive_paths
0.069
Real PR Conversation Timeline
1 comments
"Review active on #3591"
general
weight: 0.35
mackjmr
What does this PR do?
This PR moves the host profiler config to the CRD. It also ensures the feature is supported by DAP, like the annotations previously were. Annotation support will be kept for 1-2 releases, and CRD takes precedence over the annotations.
Motivation
What inspired you to submit this pull request?
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
Setup
Install the CRDs from this branch:
Run the operator from this branch with
datadogAgentProfile.enabled=true.Create the API key secret:
Base DatadogAgent used by all test cases:
1. Enable through the CRD
Add to the base DatadogAgent:
Expected: the agent pod is running and has a
host-profilercontainer. Its security context hasrunAsUser: 100and aLocalhostseccomp profile ending in-logging. Thehost-profilerlogs show symbol uploads.2. Annotations still work
Remove
spec.featuresand add the annotation:Expected: the agent pod has a
host-profilercontainer.3. The CRD takes precedence over annotations
Keep the annotation from test 2 and add:
Expected: the agent pod has no
host-profilercontainer.4. A DAP enables it through the CRD
Use the base DatadogAgent (no host profiler) and apply:
Expected: the DAP is applied. The
host-profilercontainer runs only on the matching nodes (hp-profile-agentDaemonSet), with a 768Mi memory limit.5. A DAP disables what the DDA enables
Set on the DatadogAgent:
Set on the DAP:
Expected:
datadog-agentpods have ahost-profilercontainer,hp-profile-agentpods don't.Checklist
bug,enhancement,refactoring,documentation,tooling, and/ordependenciesqa/skip-qalabel[1]: https://docs.github.com/en/authentication/managing-commit-signature-verification/signing-commits