← Back to Pull requests

fix: stamp the chart with a real version outside the release pipeline #453

Closed
unknown closed this pull request without merging on Sep 19, 2026 18:31 UTC
View on GitHub
unknown unknown commented on Aug 25, 2026 03:51 UTC
Author

Description

Chart.yaml has carried version: 0.1.0 and appVersion: "v0.4.1" since the chart landed and is not bumped at release, so installing from a checkout deploys the previous release. This is still true at the v0.5.0 tag:

$ git checkout v0.5.0
$ helm template x ./charts/node-readiness-controller --show-only templates/deployment.yaml | grep image:
    image: "registry.k8s.io/node-readiness-controller/node-readiness-controller:v0.4.1"

The published chart is correct because build-helm stamps it at package time, but RELEASE_VERSION is only ever set by scripts/build-and-publish.sh and is undefined in the Makefile. Running the documented target outside that script expands to --version "" --app-version "", which helm package does not reject. It falls back to Chart.yaml and quietly emits a 0.1.0 chart pinned to v0.4.1.

So this does two things. RELEASE_VERSION now defaults to the VERSION file, which already holds the release being cut, and Chart.yaml is synced with it.

Bumping Chart.yaml on its own would fix the install path but leave make build-helm dependent on the publish script, which is why both are here.

Related Issue

Fixes #452

Type of Change

/kind bug

Testing

Source install now deploys the right image:

$ helm template x ./charts/node-readiness-controller --show-only templates/deployment.yaml | grep image:
    image: "registry.k8s.io/node-readiness-controller/node-readiness-controller:v0.5.0"

The publish path is unaffected, since ?= yields to the environment:

$ make -n build-helm                          # --version "0.5.0"   --app-version "v0.5.0"
$ RELEASE_VERSION=v9.9.9 make -n build-helm    # --version "9.9.9"   --app-version "v9.9.9"

helm unittest --strict passes, 37 tests across 6 suites. helm lint clean. The bundled CRD still matches config/crd/bases, so verify-chart-drift.sh is unaffected.

The RELEASE.md line is the part that stops it recurring. Step 2 already lists the VERSION file and releases.md but not Chart.yaml, which is why it never moved. Same shape as #395.

Checklist


  • make test passes

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

    ``release-note
    Fixed the Helm chart's version and appVersion being stale, which caused installs from a source checkout to deploy the previous controller release.
    make build-helm now stamps the chart from the VERSION file instead of silently emitting an unversioned one.
    ``

    Diff: 315 lines (+236 / -79) across 3 files Reviewer: yindia Review duration: 36880m
    All Vouch review confidence checks passed
    Residual risk 0.17 = Change Risk (0.40) × (1 − Review Confidence (0.57)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.40 · 315 lines diff across 3 files
    0.40
    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%
    56%
    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.344
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #453"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 56.8% 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: 40.4% (MEDIUM) · Higher = larger blast radius
    40.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: 56.8% · Lower = rushed or shallow review
    56.8%
    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: 17.5% · Safe to merge
    17.5%