feat(tagger): Add KubeAI inference tags from Model owners #59117
All Vouch review confidence checks passed
Residual risk 0.26 = Change Risk (0.66) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.66 · 367 lines diff across 4 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.353
Shallow Review Depth
shallow_review_depth
0.289
Sensitive Paths
sensitive_paths
0.066
Real PR Conversation Timeline
1 comments
"Review active on #59117"
general
weight: 0.35
adel121
What does this PR do?
Add automatic low-cardinality
inference_workloadandinference_workload_componenttags to KubeAI model pods and their containers.Modelin thekubeai.orgAPI group.inference, which matches the KubeAI serving component in the backend.Motivation
KubeAI container metrics need the same workload and component tags as the inference workload resources. The Model owner reference gives the parent CR name even when pod labels are absent or have a different value. This follows the Dynamo tags added in #58045 and completes the Agent side of the KubeAI backend support.
Describe how you validated your changes
dda inv test --race --targets=./comp/core/tagger/collectors,./comp/core/workloadmeta/collectors/util,./comp/core/workloadmeta/collectors/internal/kubelet,./pkg/util/kubernetes/kubeletpassed all 9 test targets.dda inv linter.go --module=test/new-e2e --targets=./tests/containerspassed with no issues.git diff --checkpassed.container.cpu.usagetag set with a conflicting model label, then removes the pod, CR, and CRD. Kubelet does not refresh owner references on existing pods, so the owner must be set before the pod starts.b86f6e89: both Agent rollouts passed readiness checks. The live KubeAI model pod and container have both inference tags. A temporary pod with a real KubeAI Model owner and no inference labels also has both tags on its pod and container entities. The test pod was removed after validation. The demo image retains its separate custom trace-agent binary.TestKSM: the API server rejected nulllastTransitionTimeandlastUpdateTimefields in DatadogMetric status before the KubeAI test started. That separate failure is not changed here.Additional Notes
Includes a release note. The existing containers E2E CI jobs cover the changed paths; no new cloud infrastructure or external images are required.