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:
@@ -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 }}
|
||||
`
|
||||
|
||||
Reference in New Issue
Block a user