← Back to Pull requests

feat: allow to run Peons with custom versions on k8s #20937

Closed
unknown closed this pull request without merging on Nov 23, 2026 12:14 UTC
View on GitHub
unknown unknown commented on Nov 19, 2026 13:57 UTC
Author

This PR adds the task context key minPodImageTag. The key sets the minimum image tag of the first container in the Peon pod template. An operator can then run some tasks on a newer Druid build than the Overlord, with no Overlord restart.

  • The runtime property druid.indexer.runner.allowTaskImageTagOverride enables the key. The default is false.

  • Druid uses the tag only if it is newer than the template tag. StringComparators.VERSION compares the tags.

  • Druid changes only the tag. The key applies only to the Custom Template Pod Adapter (customTemplateAdapter).

  • An invalid tag fails the task.
  • Local test on minikube was done to verify the effort: Druid cluster has been spen up with 40.0.0-SNAPSHOT. Two approaches were tried:
    1. run with 41.0.0 image tag (same Druid code but in image with artificial 41.0.0 version) (1)
    2. run with Druid 39.0.0 image.

    (1):

    Task[noop_image_tag_test_1] uses image[apache/druid:41.0.0] instead of image[apache/druid:40.0.0-SNAPSHOT] from pod template[base].
    

    (2):

    Task[noop_image_tag_test_3_older] sets context key[minPodImageTag] to tag[39.0.0], which is not newer than tag[40.0.0-SNAPSHOT] of image[apache/druid:40.0.0-SNAPSHOT] from pod template[base]. Using the image from the pod template.
    

    Diff: 161 lines (+120 / -41) across 2 files Reviewer: Fly-Style Review duration: 5656m
    All Vouch review confidence checks passed
    Residual risk 0.23 = Change Risk (0.58) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.58 · 161 lines diff across 2 files
    0.58
    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.304
    Shallow Review Depth shallow_review_depth
    0.289
    Sensitive Paths sensitive_paths
    0.058
    Real PR Conversation Timeline
    1 comments
    "Review active on #20937"
    general weight: 0.35
    Reviewers
    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: 58.1% (MEDIUM) · Higher = larger blast radius
    58.1%
    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: 22.9% · Safe to merge
    22.9%
    Repository