drone-runners:master
← joekhoobyar:secret-volumes
opened 04:37AM - 17 Jan 22 UTC
## Support `secret` volumes
Add support for kubernetes secrets as volumes.
…
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
secret:
name: received-data-claim
default_mode: 420
optional: false
```