Make chart idempotent #614

Closed
opened 2025-11-11 14:27:31 -06:00 by GiteaMirror · 0 comments
Owner

Originally created by @jmferrer on GitHub (Apr 9, 2024).

Bug Report

Description

Bug Summary:
Chart is not idempotent when storageClass is not configured.

Steps to Reproduce:
Running helm upgrade --install open-webui . twice.

Expected Behavior:
It is upgraded.

Actual Behavior:

Error: UPGRADE FAILED: cannot patch "open-webui" with kind PersistentVolumeClaim: PersistentVolumeClaim "open-webui" is invalid: spec: Forbidden: spec is immutable after creation except resources.requests for bound claims
  core.PersistentVolumeClaimSpec{
  	... // 2 identical fields
  	Resources:        {Requests: {s"storage": {i: {...}, s: "2Gi", Format: "BinarySI"}}},
  	VolumeName:       "pvc-6316c4dc-cc28-44bc-96cc-8717f9015b9e",
- 	StorageClassName: &"microk8s-hostpath",
+ 	StorageClassName: nil,
  	VolumeMode:       &"Filesystem",
  	DataSource:       nil,
  	DataSourceRef:    nil,
  }

Environment

  • Operating System: microk8s

Fix

Fixed here: https://github.com/open-webui/open-webui/pull/1466

Originally created by @jmferrer on GitHub (Apr 9, 2024). # Bug Report ## Description **Bug Summary:** Chart is not idempotent when storageClass is not configured. **Steps to Reproduce:** Running `helm upgrade --install open-webui .` twice. **Expected Behavior:** It is upgraded. **Actual Behavior:** ``` Error: UPGRADE FAILED: cannot patch "open-webui" with kind PersistentVolumeClaim: PersistentVolumeClaim "open-webui" is invalid: spec: Forbidden: spec is immutable after creation except resources.requests for bound claims   core.PersistentVolumeClaimSpec{    ... // 2 identical fields    Resources: {Requests: {s"storage": {i: {...}, s: "2Gi", Format: "BinarySI"}}},    VolumeName: "pvc-6316c4dc-cc28-44bc-96cc-8717f9015b9e", -  StorageClassName: &"microk8s-hostpath", +  StorageClassName: nil,    VolumeMode: &"Filesystem",    DataSource: nil,    DataSourceRef: nil,   } ``` ## Environment - **Operating System:** microk8s ## Fix Fixed here: https://github.com/open-webui/open-webui/pull/1466
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#614