← Back to Pull requests

Unify DatadogAgent image version resolution #3811

Closed
unknown closed this pull request without merging on Nov 18, 2026 14:25 UTC
View on GitHub
unknown unknown commented on Nov 18, 2026 10:50 UTC
Author

What does this PR do?

  • Centralizes Agent version resolution for DatadogAgent feature gates around the same image override rules used to render pods.

  • Uses each component's bundled image for overrides that omit the tag and gives a tag embedded in the image name precedence over the separate tag field.

  • Strips image variant suffixes for version comparisons while preserving prerelease versions and each feature's fallback for unknown versions.
  • Motivation

    Feature gates were resolving image versions independently. A pull-policy-only override could be treated as an unknown version even though the pod still used the bundled image. Sharing image resolution keeps feature gates consistent with the component image selected by the spec.

    Additional Notes

  • The experimental per-container image annotation runs after the spec-based checks and can select a different image. The trace-loader, vSocket, and Data Plane comments document where those decisions can differ from the final image. GPU and Private Action Runner continue to consult their per-container overrides.

  • Standalone OTel has its own ddot-collector image rendering rules. Its existing compatibility check reads the Node Agent image configuration, which remains a separate issue.
  • Minimum Agent Versions

    Existing feature-specific minimums apply to both the Agent and Cluster Agent.

    Describe your test plan

  • Ran go test ./... and make lint.

  • Regression tests cover tag precedence, registry ports, image variants, missing overrides, and bundled version inheritance when an override only sets pull policy.

  • To smoke-test rendering, set only spec.override.nodeAgent.image.pullPolicy and confirm that the DaemonSet keeps the bundled tag. Then set conflicting tags in image.name and image.tag and confirm that the image and feature gate follow the tag in image.name.
  • 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: 277 lines (+207 / -70) across 3 files Reviewer: gabedos Review duration: 214m
    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 · 277 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.337
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #3811"
    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.6% (MEDIUM) · Higher = larger blast radius
    39.6%
    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.6% · Safe to merge
    15.6%