← Back to Pull requests

fix(deps): keep API Kubernetes dependencies Agent-compatible #3458

Closed
unknown closed this pull request without merging on Sep 11, 2026 19:13 UTC
View on GitHub
unknown unknown commented on Sep 11, 2026 14:40 UTC
Author

What does this PR do?

Downgrades the standalone API module Kubernetes dependencies from 0.37 to their pre-bump 0.35 versions while leaving the operator root module on Kubernetes 0.37.

Adds a guarded workspace sync helper so make sync, make build, and make update-golang preserve the API module Kubernetes constraints while retaining other legitimate dependency updates and recomputing its standalone checksums. The API module also documents that future Kubernetes dependency bumps must be coordinated with datadog-agent.

Motivation

datadog-agent imports github.com/DataDog/datadog-operator/api and currently selects Kubernetes 0.35 to retain support for older HPA API versions. Requiring Kubernetes 0.37 from the API module forces the Agent build onto that version through minimal-version selection and breaks that compatibility constraint.

Additional Notes

The root operator continues to build against Kubernetes 0.37. Only the independently consumed API module remains on Kubernetes 0.35. The sync helper restores the API module metadata from backups if synchronization or standalone tidying fails.

Minimum Agent Versions

No new minimum versions are required.

Agent: unchanged
Cluster Agent: unchanged

Describe your test plan

  • make update-golang

  • make build

  • make ci-test

  • Standalone API module tests with GOWORK=off

  • Local datadog-agent autoscaling model tests with kubeapiserver and test build tags, using this checkout of the API module

  • Verified make sync preserves Kubernetes constraints and independently tidies api/go.mod and api/go.sum

  • Verified an unrelated API dependency promotion survives the guarded sync
  • Checklist

  • PR has at least one valid label: 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: 242 lines (+181 / -61) across 3 files Reviewer: Mathew-Estafanous Review duration: 272m
    All Vouch review confidence checks passed
    Residual risk 0.24 = Change Risk (0.62) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.62 · 242 lines diff across 3 files
    0.62
    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.329
    Shallow Review Depth shallow_review_depth
    0.289
    Sensitive Paths sensitive_paths
    0.062
    Real PR Conversation Timeline
    1 comments
    "Review active on #3458"
    general weight: 0.35
    Assignees
    Unassigned
    Labels
    risk: low confidence: 60.5% reviewed sensitive_module
    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: 62.0% (MEDIUM) · Higher = larger blast radius
    62.0%
    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: 24.5% · Safe to merge
    24.5%