Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

3041 breaks Helm Rollback #3125

Open
richardwhiuk opened this issue May 8, 2024 · 1 comment · May be fixed by #3163
Open

3041 breaks Helm Rollback #3125

richardwhiuk opened this issue May 8, 2024 · 1 comment · May be fixed by #3163

Comments

@richardwhiuk
Copy link

7eb3523 breaks rollback

Error: cannot patch "core-grafana" with kind PersistentVolumeClaim: PersistentVolumeClaim "core-grafana" is invalid: spec: Forbidden: spec is immutable after creation except resources.requests for bound claims
  core.PersistentVolumeClaimSpec{
      AccessModes:      {"ReadWriteOnce"},
      Selector:         nil,
      Resources:        {Requests: {s"storage": {i: {...}, s: "10Gi", Format: "BinarySI"}}},
-     VolumeName:       "pvc-83d5534d-78b3-492b-8d52-425fcf174ad8",
+     VolumeName:       "",
      StorageClassName: &"managed-premium-zrs",
      VolumeMode:       &"Filesystem",
      ... // 2 identical fields
  }

This is because:

  • Helm Release 1, the lookup doesn't find anything, so the spec has ""
  • An Upgrade is performed, which has the lookup, so it fills in the volume name.
  • A Rollback is performed, the template is not re-evaluated, so the rollback attempts to wipe out the volume name.

Helm errors because this field is immutable.

There's no description in #3041 to explain what kind of upgrade we were doing which hit this issue.

@richardwhiuk
Copy link
Author

Workaround is to rollback to Grafana Helm Charts 7.3.8 prior to this change.

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 a pull request may close this issue.

1 participant