Fix Kubernetes version string handling by stripping metadata #623
All Vouch review confidence checks passed
Residual risk 0.27 = Change Risk (0.59) × (1 − Review Confidence (0.54)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.59 · 190 lines diff across 2 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.314
Shallow Review Depth
shallow_review_depth
0.289
Sensitive Paths
sensitive_paths
0.059
Real PR Conversation Timeline
1 comments
"Review active on #623"
general
weight: 0.35
wawa0210
What type of PR is this?
/kind bug
<!--
Add one of the following kinds:
/kind bug
/kind cleanup
/kind deprecation
/kind design
/kind documentation
/kind failing-test
/kind feature
/kind flake
-->
What this PR does / why we need it:
This PR fixes an issue where Kubernetes version strings with additional metadata (e.g.,
+k3s1) caused problems in dynamically generated image tags. The newstrippedKubeVersionfunction removes the part after the+in the Kubernetes version string, ensuring consistent and predictable image tagging.Which issue(s) this PR fixes:
Fixes #621
Special notes for your reviewer:
@archlitchi
@wawa0210
Does this PR introduce a user-facing change?:
Yes, this PR restores compatibility for specifying certain parameters during
helm install/upgrade.After version 2.4.1, users were unable to specify parameters like
scheduler.kubeScheduler.tag(scheduler image version),devicePlugin.deviceSplitCount,devicePlugin.deviceMemoryScaling, anddevicePlugin.deviceCoreScalingdirectly during Helm operations.With this PR merged:
scheduler.kubeScheduler.tagduringhelm installorhelm upgrade. If the parameter is not provided, the image version will continue to be auto-generated based on the Kubernetes version.deviceSplitCount,deviceMemoryScaling, anddeviceCoreScalingare also restored for direct specification during Helm operations.