← Back to Pull requests

Add Kueue feature #3563

Closed
unknown closed this pull request without merging on Oct 22, 2026 17:29 UTC
View on GitHub
unknown unknown commented on Oct 07, 2026 12:26 UTC
Author

What does this PR do?

Adds features.kueue:

  • Enables Kueue metadata collection in the Cluster Agent (queue, resource flavor and workload tags).

  • Configures the kueue check as an endpoints check against each Kueue controller pod. This requires features.clusterChecks.enabled.
  • Motivation

    Setting up the Kueue integration currently means manually annotating Kueue's metrics Service, adding Cluster Agent env vars and writing RBAC. Kueue's metrics are HTTPS-only with token auth. In HA, counters and histograms come only from the leader, so every replica has to be scraped, not the Service.

    Additional Notes

  • The check runs on the node Agent of each Kueue controller pod's node, so those nodes need a node Agent. Control-plane nodes may need tolerations.

  • Follow-up: add kueue.x-k8s.io to the operator ClusterRole in helm-charts.
  • Minimum Agent Versions

    Agent: v7.82.0 (v7.86.0 for Kueue with more than one replica)
    Cluster Agent: v7.82.0

    Describe your test plan

    Unit tests added. Tested on a kubeadm cluster with Kueue v0.18.1 and Agent 7.84.1, with the operator both out of cluster and in cluster:

  • The check is dispatched to the Kueue pod's node and runs OK; metrics carry the Kueue tags, and Workload events are sent.

  • Overrides, disabling the feature, cluster checks off, and the version gates (7.81 images) behave as expected.
  • 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: 216 lines (+162 / -54) across 2 files Reviewer: AlexanderYastrebov Review duration: 21903m
    All Vouch review confidence checks passed
    Residual risk 0.14 = Change Risk (0.37) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.37 · 216 lines diff across 2 files
    0.37
    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.322
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #3563"
    general weight: 0.35
    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: 36.6% (MEDIUM) · Higher = larger blast radius
    36.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: 14.5% · Safe to merge
    14.5%