← Back to Pull requests

feat(deps): upgrade bundled kubectl to v1.36.7 and automate patch updates #3285

Open
unknown opened this pull request with 263 lines diff across 3 files
View on GitHub
unknown unknown commented on Nov 05, 2026 08:29 UTC
Author

Purpose of this PR

The kubectl image used by the CRD-upgrade Helm hook (hook.upgradeCrd=true) was pinned to v1.33.2, which no longer gets patches. This bumps it and stops the version from going stale again.

Proposed changes:

  • .github/kubectl-version.txt (new): single source of truth for the kubectl version, now 1.36.7.

  • .github/workflows/build-and-push-images.yaml: read KUBECTL_VERSION from that file instead of a hardcoded env var.

  • docker/Dockerfile.kubectl: bump the ARG KUBECTL_VERSION default to 1.36.7 for local builds.

  • .github/workflows/update-kubectl.yaml (new): weekly + manual workflow that checks dl.k8s.io/release/stable-<minor>.txt and opens a signed-off PR when a new patch is out.

  • docs/release.md: kubectl version policy, how the weekly bump works and how to move to a new minor.
  • Fixes #3234

    Change Category

  • Bugfix (non-breaking change which fixes an issue)

  • Feature (non-breaking change which adds functionality)

  • Breaking change (fix or feature that could affect existing functionality)

  • Documentation update
  • Rationale

  • A plain text file is the simplest thing a workflow step can read, without needing make.

  • The Dockerfile ARG default stays so docker build works locally; the weekly workflow keeps both in sync.

  • The workflow only bumps patches within the pinned minor. Moving to a new minor stays a manual PR because of the kubectl skew policy.
  • Checklist

  • I have conducted a self-review of my own code.

  • I have updated documentation accordingly.

  • I have added tests that prove my changes are effective or that my feature works.

  • Existing unit tests pass locally with my changes.
  • Additional Notes

  • Rebased on master: the image builds now live in build-and-push-images.yaml, so the version change moved there.

  • The weekly workflow opens PRs with GITHUB_TOKEN. It needs "Allow GitHub Actions to create and approve pull requests" enabled, and CI on those PRs has to be started by closing and reopening them. Happy to switch to a GitHub App token if maintainers prefer.
  • Diff: 263 lines (+197 / -66) across 3 files Reviewer: tariq-hasan Review duration: 36562m
    All Vouch review confidence checks passed
    Residual risk 0.33 = Change Risk (0.62) × (1 − Review Confidence (0.47)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.62 · 263 lines diff across 3 files
    0.62
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.02 · 1 substantive comment(s)
    0.02
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    46%
    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
    Shallow Review Depth shallow_review_depth
    0.344
    Diff Size diff_size
    0.334
    Sensitive Paths sensitive_paths
    0.062
    Real PR Conversation Timeline
    1 comments
    "Review active on #3285"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 46.7% 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.5% (MEDIUM) · Higher = larger blast radius
    62.5%
    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: 46.7% · Lower = rushed or shallow review
    46.7%
    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: 33.3% · Safe to merge
    33.3%