This will look for secrets to mount a WebDAV FUSE volume (using davfs2) in /var/lib/davfs2_secrets - you should have three files:
With one entry per line in each file. Only the first entry will be used.
I made this with the intention of it being used as a base for a few Kubernetes cron jobs. If you extend it, simply place any scripts you want to run in /app/exec.d/ and they will be run on startup, after the volume is mounted.
Because this needs to mount a FUSE volume, it seems to require privileged mode. If somebody figures out a less-obtuse way to give it the privileges it needs, please drop a comment here.