kubernetes_asyncio icon indicating copy to clipboard operation
kubernetes_asyncio copied to clipboard

Kube API has volume.read_only flag, but V1Volume has no

Open skabbit opened this issue 1 year ago • 1 comments

By checking Kube API we could find the readOnly attribute both for volumes and volume_mounts: https://kubernetes.io/docs/concepts/storage/volumes/

But https://github.com/tomplus/kubernetes_asyncio/blob/c2c8933f29eee2c09d1be442e0b1d88a0ff39056/kubernetes_asyncio/client/models/v1_volume.py#L24 V1Volume class has no this attribute.

skabbit avatar May 07 '24 12:05 skabbit

For volume such attribute also exists but it's on vendor/type level, for example:

https://github.com/tomplus/kubernetes_asyncio/blob/master/kubernetes_asyncio/client/models/v1_nfs_volume_source.py#L24

tomplus avatar May 08 '24 22:05 tomplus

Feel free to reopen if I can help in any way.

tomplus avatar Jun 30 '24 22:06 tomplus