We mount our bucket to pods with Cloud Storage FUSE CSI driver as below
- csi: driver: gcsfuse.csi.storage.gke.io readOnly: false volumeAttributes: bucketName: my-bucket mountOptions: implicit-dirs,uid=0,gid=0,file-mode=0666,dir-mode=0777 name: my-storage
I tried to change file permissions of some files in the volume by running `chmod` and `chown` commands. Even though the commands don't fail, the permissions don't change. I think gcsfuse drivers don't allow. Is there a way to do it?
I am aware that I can use `only-dir=` flag to mount some specific folders and change uid and gid in the pod spec but I don't know which directory to mount during pod creation. I have to do it on the fly in the pod. I couldn't find a way to do it.