Skip to content

fix(helm): derive safe app rollout strategy for RWO storage - #4756

Merged
lyingbug merged 1 commit into
Tencent:mainfrom
wzxsdf:codex/fix-helm-rwo-upgrade
Oct 26, 2026
Merged

lyingbug merged 1 commit into
Tencent:mainfrom
wzxsdf:codex/fix-helm-rwo-upgrade

Conversation

@wzxsdf

@wzxsdf wzxsdf commented Oct 26, 2026

Copy link
Copy Markdown
Contributor

Description

Fix the default Helm deployment strategy for the App when the chart uses
persistent single-writer storage.

The previous defaults combined a ReadWriteOnce data-files PVC with
RollingUpdate (maxSurge: 1, maxUnavailable: 0). During upgrades,
Kubernetes could start a replacement Pod before releasing the old Pod's
volume, causing a Multi-Attach failure.

This change derives a safe default strategy:

  • Persistent storage without ReadWriteMany: Recreate
  • Persistence disabled or ReadWriteMany storage: RollingUpdate
  • Explicit app.strategy.type always takes precedence

Also updates the chart documentation and adds regression tests.

Type of Change

  • Bug fix
  • Documentation update
  • Test

Related Issue

Fixes #4376

Testing

  • helm lint ./helm
  • python -m unittest discover -s helm/tests -v
  • 12 chart rendering tests passed
  • Verified main renders RollingUpdate by default
  • Verified the fix renders Recreate for the default RWO configuration
  • git diff --check passes

@lyingbug
lyingbug merged commit 093ddd8 into Tencent:main Oct 26, 2026
2 checks passed
komorebi-c9 pushed a commit to komorebi-c9/WeKnora that referenced this pull request Nov 17, 2026
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.

bug(helm): default RollingUpdate strategy fails upgrades with the RWO data-files PVC

2 participants