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
Exposing all valid volume host path types(https://kubernetes.io/docs/concepts/storage/volumes/#hostpath)
By default the
DirectoryOrCreate
type was being used when mounting a host volume, which was causing some pipelines which rely on thedocker.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