chore(deps): bump k8s.io dependencies to v0.37 #3281
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 · 384 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.356
Shallow Review Depth
shallow_review_depth
0.289
Sensitive Paths
sensitive_paths
0.066
Real PR Conversation Timeline
1 comments
"Review active on #3281"
general
weight: 0.35
vjanelle
Purpose of this PR
Bump the Kubernetes dependencies to v0.37 so Kueue can use the new
spec.managedByfield from #3221.Kueue is on k8s.io v0.37. Our
zz_generated.openapi.gowas generated against k8s.io/api v0.35 and refers tov1.PodStatusResultandv1.WorkloadReference, which were removed in v0.37. Because of that, Kueue doesn't build when it pins a spark-operator version from master. Context: kubernetes-sigs/kueue#18107.Proposed changes:
k8s.io/*to v0.37.1,sigs.k8s.io/controller-runtimeto v0.25.2 andk8s.io/kube-openapito the commit k8s 0.37 uses. These are the same versions as Kueue main, so pinning this in Kueue changes nothing else in its go.mod.godirective to 1.26.0, which k8s.io v0.37 requires, and update the toolchain and Dockerfile builder image to go1.26.10.pkg/client.api/v1alpha1from controller-runtime's deprecatedscheme.Buildertoruntime.NewSchemeBuilder, the wayapi/v1beta2already does it.pkg/utilfor client-go's newDiscoveryInterfacesreturn type.Change Category
Rationale
controller-runtime v0.25 and the code-generator, controller-gen and envtest versions above are the ones built for k8s 0.37. I used the same versions as Kueue so that both projects run the code they build against.
The CRD schema changes only add fields that come from the core/v1 types we embed:
bindMountOptions,httpGet.protocol,grpc.mode,emptyDir.mode, anduser/defaultUseron volumes. Nothing was removed or changed type, and no spark-operator field changed.Checklist
Additional Notes
v1alpha1.SchemeBuilderis now aruntime.SchemeBuilder.AddToSchemeworks as before; only code that called.Register(objs...)on it directly would need a change. Nothing changes for cluster users.KIND_K8S_VERSION) and the e2e k8s matrix stay on 1.35. Moving them can be done in a separate PR.test/e2e).replacepointing at this branch: it builds, and the SparkApplication unit tests pass.Locally passing:
make go-fmt go-vet go-lint unit-test verify-codegen detect-crds-drift drift-check helm-unittest helm-docs kustomize-lint.