Skip to content
This repository has been archived by the owner on Jun 23, 2020. It is now read-only.

Adding volume host path type to spec. #42

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

diogogmt
Copy link

@diogogmt diogogmt commented Feb 2, 2019

Exposing all valid volume host path types(https://kubernetes.io/docs/concepts/storage/volumes/#hostpath)

  • DirectoryOrCreate
  • Directory
  • FileOrCreate
  • File
  • Socket
  • CharDevice
  • BlockDevice

By default the DirectoryOrCreate type was being used when mounting a host volume, which was causing some pipelines which rely on the docker.sock being available inside the step pod container to fail with: MountVolume.SetUp failed for volume "c18m372vorpojl4s9aj0kz2vaqrvxbmi" : hostPath type check failed: /var/run/docker.sock is not a directory

@CLAassistant
Copy link

CLAassistant commented Feb 2, 2019

CLA assistant check
All committers have signed the CLA.

@tboerger
Copy link

tboerger commented Feb 4, 2019

Maybe this should also be part of the default runtime, already looks pretty good.

stevecrozz pushed a commit to stevecrozz/drone-runtime that referenced this pull request Jun 14, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants