runtime: add WithVolume options and k8s support (#2032)

* runtime: add WithVolume option

* Fix pointer

* k8s: fix template

* k8s: fix template

* k8s: fix template
This commit is contained in:
ben-toogood
2020-09-30 16:38:29 +01:00
committed by GitHub
parent 02b74a5487
commit a365c51c2b
4 changed files with 61 additions and 0 deletions

View File

@@ -139,6 +139,21 @@ spec:
{{- end }}
{{- end }}
{{- end }}
volumeMounts:
{{- with .VolumeMounts }}
{{- range . }}
- name: {{ .Name }}
mountPath: {{ .MountPath }}
{{- end }}
{{- end }}
{{- end }}
{{- end }}
volumes:
{{- with .Spec.Template.PodSpec.Volumes }}
{{- range . }}
- name: {{ .Name }}
persistentVolumeClaim:
claimName: {{ .PersistentVolumeClaim.ClaimName }}
{{- end }}
{{- end }}
`