csi-driver icon indicating copy to clipboard operation
csi-driver copied to clipboard

Upgrading from 1.6.0 to master: invalid: spec.fsGroupPolicy

Open vitobotta opened this issue 1 year ago • 1 comments

Hi! I upgraded from 1.6.0 to master to support newer versions of k8s and I get this:

The CSIDriver "csi.hetzner.cloud" is invalid: spec.fsGroupPolicy: Invalid value: "File": field is immutable

What can I do? Volumes seem to work though. Thanks!

vitobotta avatar Aug 12 '22 15:08 vitobotta

same here on Kubernetes v1.21.4

llama0815 avatar Aug 24 '22 09:08 llama0815

The field was added in preparation of the new v2 of the driver and is a breaking change. A migration guide will be published when the new version is actually released.

apricote avatar Nov 11 '22 10:11 apricote

The migration guide for v2.0.0 includes documentation on how to approach this issue during the upgrade: https://github.com/hetznercloud/csi-driver#from-v1-to-v2

If you still have issues with this, please feel free to reopen the issue or create a new one.

apricote avatar Nov 21 '22 12:11 apricote