-
Notifications
You must be signed in to change notification settings - Fork 481
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
VolumePermissionEnricher : Use .spec.storageClassName
instead of annotation to set PersistentVolume class
#1361
Milestone
Comments
Or maybe keep both approaches for backwards compatibility? |
rohanKanojia
added a commit
to rohanKanojia/jkube
that referenced
this issue
Jun 30, 2022
…rageClassName` instead of annotation to set PersistentVolume class (eclipse-jkube#1361) VolumePermissionEnricher should now add StorageClass name in `.spec.storageClassName` field instead of an annotation in metadata. Add a new configuration field `useStorageClassAnnotation` in VolumePermissionEnricher configuration for backward compatibility. User can switch back to annotation by setting this field to `true`. Signed-off-by: Rohan Kumar <rohaan@redhat.com>
rohanKanojia
added a commit
to rohanKanojia/jkube
that referenced
this issue
Jul 12, 2022
…rageClassName` instead of annotation to set PersistentVolume class (eclipse-jkube#1361) VolumePermissionEnricher should now add StorageClass name in `.spec.storageClassName` field instead of an annotation in metadata. Add a new configuration field `useStorageClassAnnotation` in VolumePermissionEnricher configuration for backward compatibility. User can switch back to annotation by setting this field to `true`. Signed-off-by: Rohan Kumar <rohaan@redhat.com>
manusa
pushed a commit
to rohanKanojia/jkube
that referenced
this issue
Jul 25, 2022
…rageClassName` instead of annotation to set PersistentVolume class (eclipse-jkube#1361) VolumePermissionEnricher should now add StorageClass name in `.spec.storageClassName` field instead of an annotation in metadata. Add a new configuration field `useStorageClassAnnotation` in VolumePermissionEnricher configuration for backward compatibility. User can switch back to annotation by setting this field to `true`. Signed-off-by: Rohan Kumar <rohaan@redhat.com>
manusa
pushed a commit
to rohanKanojia/jkube
that referenced
this issue
Jul 25, 2022
…rageClassName` instead of annotation to set PersistentVolume class (eclipse-jkube#1361) VolumePermissionEnricher should now add StorageClass name in `.spec.storageClassName` field instead of an annotation in metadata. Add a new configuration field `useStorageClassAnnotation` in VolumePermissionEnricher configuration for backward compatibility. User can switch back to annotation by setting this field to `true`. Signed-off-by: Rohan Kumar <rohaan@redhat.com>
manusa
pushed a commit
that referenced
this issue
Jul 25, 2022
…rageClassName` instead of annotation to set PersistentVolume class (#1361) VolumePermissionEnricher should now add StorageClass name in `.spec.storageClassName` field instead of an annotation in metadata. Add a new configuration field `useStorageClassAnnotation` in VolumePermissionEnricher configuration for backward compatibility. User can switch back to annotation by setting this field to `true`. Signed-off-by: Rohan Kumar <rohaan@redhat.com>
baruKreddy
pushed a commit
to baruKreddy/jkube
that referenced
this issue
Aug 11, 2022
…rageClassName` instead of annotation to set PersistentVolume class (eclipse-jkube#1361) VolumePermissionEnricher should now add StorageClass name in `.spec.storageClassName` field instead of an annotation in metadata. Add a new configuration field `useStorageClassAnnotation` in VolumePermissionEnricher configuration for backward compatibility. User can switch back to annotation by setting this field to `true`. Signed-off-by: Rohan Kumar <rohaan@redhat.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
Right now we seem to be using
volume.beta.kubernetes.io/storage-class
annotation to provide the class of PersistentVolume.https://github.com/eclipse/jkube/blob/d5653eeaedfcda146065e1b674040114ff3be1b0/jkube-kit/enricher/generic/src/main/java/org/eclipse/jkube/enricher/generic/VolumePermissionEnricher.java#L192-L194
However, as per Kubernetes docs, this annotation will be marked as deprecated:
https://kubernetes.io/docs/concepts/storage/persistent-volumes/#class
We should refactor VolumePermissionEnricher to set
storageClassName
field in.spec
instead of setting deprecated annotationThe text was updated successfully, but these errors were encountered: