The gitRepo volume type is probably not going to be on your list of top three volume types. Or, maybe it will. It all depends on your use cases. I like it since it demonstrates how a concept of a volume can be extended to a new and innovative solution.
Let's see it in action through the volume/github.yml definition:
cat volume/github.yml
The output is as follows:
apiVersion: v1 kind: Pod metadata: name: github spec: containers: - name: github image: docker:17.11 command: ["sleep"] args: ["100000"] volumeMounts: - mountPath: /var/run/docker.sock name: docker-socket - mountPath: /src name: github volumes: - name: docker-socket hostPath: path: /var/run/docker.sock type: Socket - name: github gitRepo: repository: https://github...