fix(deps): keep API Kubernetes dependencies Agent-compatible #3458
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
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.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
Mathew-Estafanous
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
Checklist
[1]: https://docs.github.com/en/authentication/managing-commit-signature-verification/signing-commits