Skip to content

fix(helm): preserve upgrade values and validate chart publication - #357

Open
Vonng wants to merge 2 commits into
mainfrom
codex/helm-7.1-upgrade
Open

Vonng wants to merge 2 commits into
mainfrom
codex/helm-7.1-upgrade

Conversation

@Vonng

@Vonng Vonng commented Nov 25, 2026 •

Copy link
Copy Markdown
Member

Follow-up to #351. Refs #223.

Changes

  • Match chart-<version> tags, check the tag against Chart.yaml, lint and package the chart, and upload that exact archive. Retain the installation examples for a source checkout.
  • Preserve literal root credentials by default. Parent charts can opt into templating with tplRootCredentials. Restore the optional bucket policy, versioning argument and Ingress TLS Secret name.
  • Share OIDC configuration across Deployment and StatefulSet. Honor the ConfigMap and Secret references and explicit legacy callbacks. Emit the browser redirect only when configured.
  • Preserve the storage class selected for existing PVCs and StatefulSet claim templates when a parent supplies a default. Apply the hook node selector before rendering it, and propagate common labels to the monitoring Probe and hook NetworkPolicy.
  • Exercise these settings and an aliased, packaged dependency in the existing Helm release check.

Verification

The chart tests ran on Kubernetes 1.34.0 in disposable single-node ARM64 kind clusters. The published server and client images were RELEASE.2026-11-12T00-00-00Z. The combined rolling-upgrade test also used a local image containing the server built from #358 (e5296263f).

Scenario Result
Standalone chart 7.0.5 → 7.1.0 helm upgrade --reuse-values completed. Both initialization hooks succeeded. The original credentials read back the 1 MiB object byte-for-byte. The PVC UID, bound PV, Secret UID and credential data matched before and after the upgrade.
Distributed child chart 7.0.5 → 7.1.0 All four PVCs and their PV bindings were preserved. The StatefulSet retained its original claim template even though the parent supplied a different default class. Four pods became ready and the stored object matched.
Distributed child chart with the patched server Rolled all four replicas from the published server on 7.0.5 to the patched server on 7.1.0 using --reuse-values. All four nodes reported online and read the original 1 MiB object byte-for-byte. A new object written on one node matched when read on another. All four PVC UIDs and PV bindings, the StatefulSet claim template, and the root Secret UID and contents were preserved.
Fresh install through an OCI dependency Packaged and pushed 7.1.0 to a loopback registry with Helm 4.3.2. Helm 3.18.6 fetched the same archive anonymously under the alias objects. Four pods became ready, the post-install job created the requested policy and bucket, and an S3 write/read matched.
Release checks Helm 3.18.6 and 4.3.2 passed lint, rendering, migration identity, packaging and aliased dependency checks. The workflow packaging step accepted chart-7.1.0 and rejected a mismatched tag. actionlint, shellcheck and make rebrand-guard passed.

Public GHCR publication and its installation instructions are tracked in #223.

Signed-off-by: Feng Ruohang <rh@vonng.com>
Signed-off-by: Feng Ruohang <rh@vonng.com>
@Vonng
Vonng marked this pull request as ready for review November 25, 2026 04:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant