drone-runners:master
← joekhoobyar:configmap-volumes
opened 11:14PM - 05 Jan 22 UTC
## Support `config_map` volumes
Add support for kubernetes config maps as vol…umes.
This is a great help in letting our runners include less copy-pasted code or data.
```
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
- echo "hello" > /shared/greetings.txt
- name: read
pull: if-not-exists
image: alpine
volumes:
- name: shared
path: /shared
commands:
- pwd
- ls /shared
- cat /shared/greetings.txt
volumes:
- name: shared
config_map:
name: received-data-claim
default_mode: 420
optional: false
```