← Back to Pull requests

bump controller-runtime to 24 and golang 26 #319

Merged
ajaysundark merged 12 files (599 lines) on Jul 23, 2026 17:01 UTC
View on GitHub
ajaysundark ajaysundark commented on Jul 22, 2026 06:02 UTC
Author

Description

1. bump controller-runtime and go dependencies
2. mechanical adaptations in updating the versions!

Related Issue


None

Type of Change

/kind feature

Testing


existing tests are passing

Checklist


  • [X] make test passes

  • [X] make lint passes
  • Does this PR introduce a user-facing change?

    ``release-note
    chore: bump controller-runtime to v0.24 and go 1.26
    ``

    Diff: 599 lines (+283 / -316) across 12 files Reviewer: vitorfloriano Review duration: 2099m
    All Vouch review confidence checks passed
    Residual risk 0.17 = Change Risk (0.57) × (1 − Review Confidence (0.71)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.57 · 599 lines diff across 12 files
    0.57
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.55 · 5 substantive comment(s)
    0.55
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    70%
    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.383
    Real PR Conversation Timeline
    7 items
    netlify[bot] netlify[bot] commented on Jul 22, 2026 06:02 UTC
    Bot

    <span aria-hidden="true">✅</span> Deploy Preview for node-readiness-controller canceled.

    | Name | Link |
    |:-:|------------------------|
    |<span aria-hidden="true">🔨</span> Latest commit | e3c41c32bd6a3d2819f79c350a7d01ed13781e25 |
    |<span aria-hidden="true">🔍</span> Latest deploy log | https://app.netlify.com/projects/node-readiness-controller/deploys/6a60c0a47308840008dd3db5 |

    ajaysundark ajaysundark commented on Jul 22, 2026 06:04 UTC
    Author

    /home/prow/go/src/github.com/kubernetes-sigs/node-readiness-controller/hack/tools/bin/controller-gen-v0.19.0 rbac:roleName=manager-role crd webhook paths="./..." output:crd:artifacts:config=config/crd/bases
    Error: load packages in root "/home/prow/go/src/github.com/kubernetes-sigs/node-readiness-controller": err: exit status 1: stderr: go: go.mod requires go >= 1.26.0 (running go 1.25.8; GOTOOLCHAIN=go1.25.8)
    

    looks like more work is needed.

    ajaysundark ajaysundark commented on Jul 22, 2026 14:09 UTC
    Author

    /retest-required

    vitorfloriano vitorfloriano commented on code on Jul 23, 2026 16:51 UTC
    Code Review
    internal/webhook/nodereadinessgaterule_webhook_test.go:1
    @@ -603,16 +603,8 @@ var _ = Describe("NodeReadinessRule Validation Webhook", func() {
     			Expect(warnings).To(BeNil())
     		})
     
    -		It("should reject wrong object types", func() {
    -			wrongObject := &corev1.Node{
    -				ObjectMeta: metav1.ObjectMeta{Name: "not-a-rule"},
    -			}
    -
    -			warnings, err := webhook.ValidateCreate(ctx, wrongObject)
    -			Expect(err).To(HaveOccurred())
    -			Expect(warnings).To(BeNil())
    -			Expect(err.Error()).To(ContainSubstring("expected NodeReadinessRule"))
    -		})
    +		// Note: "wrong object type" rejection is now enforced at compile time by
    +		// the typed admission.Validator[*NodeReadinessRule] interface.

    Nice!

    vitorfloriano vitorfloriano approved these changes on Jul 23, 2026 16:51 UTC
    Approved Reviewer

    /lgtm

    kubernetes-prow[bot] kubernetes-prow[bot] commented on Jul 23, 2026 16:52 UTC
    Bot

    [APPROVALNOTIFIER] This PR is APPROVED

    This pull-request has been approved by: <a href="https://github.com/kubernetes-sigs/node-readiness-controller/pull/319#" title="Author self-approved">ajaysundark</a>, <a href="https://github.com/kubernetes-sigs/node-readiness-controller/pull/319#pullrequestreview-4766317779" title="LGTM">vitorfloriano</a>

    The full list of commands accepted by this bot can be found here.

    The pull request process is described here

    <details >
    Needs approval from an approver in each of these files:

  • ~~OWNERS~~ [ajaysundark]
  • Approvers can indicate their approval by writing /approve in a comment
    Approvers can cancel approval by writing /approve cancel in a comment
    </details>
    <!-- META={"approvers":[]} -->

    Reviewers
    Assignees
    ajaysundark ajaysundark
    Labels
    risk: low confidence: 70.7% 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: 57.4% (MEDIUM) · Higher = larger blast radius
    57.4%
    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: 70.7% · Lower = rushed or shallow review
    70.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: 16.8% · Safe to merge
    16.8%