You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A PV can have a class, which is specified by setting the storageClassName attribute to the name of a [StorageClass](https://kubernetes.io/docs/concepts/storage/storage-classes/). A PV of a particular class can only be bound to PVCs requesting that class. A PV with no storageClassName has no class and can only be bound to PVCs that request no particular class.
In the past, the annotation volume.beta.kubernetes.io/storage-class was used instead of the storageClassName attribute. This annotation is still working; however, it will become fully deprecated in a future Kubernetes release
I noticed this when it caused an issue with some newer software, example - longhorn: longhorn/longhorn#6264, that only looks for spec.storageClass instead of annotations.
We should push a change/enhancement to remove the deprecated annotation and instead use spec.storageClass
The text was updated successfully, but these errors were encountered:
I noticed that once we removed this, you may face an error for immutable/unable to change pvc resource if you were using the annotation method previously. This is because those annotations like storageClasses are considered immutable and you cannot change or remove those once created.
You could do two things:
Create a backup before using upgrading chart version ( do a helm rollback if it left you in an inconsistent state), remove the existing installation, and reinstall and import back up. This will ensure you are no longer using deprecated annotations that will go away and are using storageClasses moving froward.
Could optionally modify helm chart to have a variable like, legacyStorageAnnotations, and if it is true (default false), then use annotation headers for PVC storage class instead. This is just kicking the can down the road so it is preferred to do option 1
The pvc template in the current helm chart uses the deprecated kubernetes volume annotation:
According to K8 documentation - https://kubernetes.io/docs/concepts/storage/persistent-volumes/
I noticed this when it caused an issue with some newer software, example - longhorn: longhorn/longhorn#6264, that only looks for
spec.storageClass
instead of annotations.We should push a change/enhancement to remove the deprecated annotation and instead use
spec.storageClass
The text was updated successfully, but these errors were encountered: