← Back to Pull requests

fix(clusterchecksrunner): preserve packaged conf.d assets (e.g. SNMP … #3374

Closed
unknown closed this pull request without merging on Aug 24, 2026 16:05 UTC
View on GitHub
unknown unknown commented on Aug 20, 2026 12:31 UTC
Author

…profiles) on CLC runners (CONS-8516)

What does this PR do?

Adds an init container to the cluster-checks-runner that seeds the conf.d overlay with the agent image's packaged check assets (e.g. SNMP default_profiles), then removes only .yaml.default so default core checks still don't run. This preserves out-of-the-box profiles on Operator CLC runners—aligning with Helm #1594—so SNMP/NDM cluster checks can autodetect profiles without a manual init-container workaround.

Motivation

https://datadoghq.atlassian.net/browse/CONS-8516

Additional Notes

Manually tested -

Ran the patched operator locally (go run ./cmd/main.go) against a minikube cluster and applied a DatadogAgent with features.clusterChecks.useClusterChecksRunners: true plus an SNMP cluster check via clusterAgent.extraConfd. On the resulting cluster-checks-runner pod I confirmed the new init-copy-check-assets init container ran and that /etc/datadog-agent/conf.d/snmp.d/default_profiles is now populated (e.g. _arista.yaml, _aruba-base.yaml, …), while find /etc/datadog-agent/conf.d -name '.yaml.default' returns 0 — so packaged profiles are preserved and default core checks are still pruned. In agent status, the previous profile errors (failed to read profile dir … no such file or directory / no profiles found for sysObjectID) are gone; the SNMP check now proceeds past profile autodetection and only fails on device reachability (request timeout), which is expected since there's no real SNMP device at the test IP. This confirms the fix restores OOTB SNMP profiles on Operator CLC runners. Unit tests and the render golden files were also updated and pass.

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

Write there any instructions and details you may have to test your PR.

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][1])
  • [1]: https://docs.github.com/en/authentication/managing-commit-signature-verification/signing-commits

    Diff: 286 lines (+214 / -72) across 3 files Reviewer: frank-spano Review duration: 5974m
    All Vouch review confidence checks passed
    Residual risk 0.16 = Change Risk (0.40) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.40 · 286 lines diff across 3 files
    0.40
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.17 · 1 substantive comment(s)
    0.17
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    60%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    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.339
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #3374"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 60.5% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 39.8% (MEDIUM) · Higher = larger blast radius
    39.8%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 60.5% · Lower = rushed or shallow review
    60.5%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 15.7% · Safe to merge
    15.7%