Hi @Elgarni, we just needed this feature aswell, so we have forked the repo and added some changes that allow to mount as readOnly an already existing PVC, that we use as shared storage between jobs. I would like to send this Pull Request but I’m not sure how to do it. I read the contributing guide and I understood that first a threat here is needed, isn’t it?
We are using Drone for some pipelines that need to access some heavy data that are already present outside the jobs, and we started to download these from a Minio instance, but the download jobs was around 11 min, so we thought that should be useful to mount as read only the PVC to run the jobs without wait to download all the data needed.
the .drone.yml should be something like below, where the already existing PVC is called received-data-claim
kind: pipeline
type: kubernetes
name: default
clone:
disable: true
steps:
- name: write
pull: if-not-exists
image: alpine
volumes:
- name: shared
path: /shared
commands:
- pwd
- ls /shared
# once the pipeline finished, check the host machine
# to see if exists /tmp/drone/test/greetings.txt
volumes:
- name: shared
claim:
name: received-data-claim