diff --git a/charts/workload/Chart.yaml b/charts/workload/Chart.yaml index 24346c3..84553b7 100644 --- a/charts/workload/Chart.yaml +++ b/charts/workload/Chart.yaml @@ -2,7 +2,7 @@ apiVersion: v2 name: softplayer-lib-workload description: A library to be reused accross softplayer charts type: library -version: 0.1.3 +version: 0.1.4 maintainers: - name: allanger email: allanger@badhouseplants.net diff --git a/charts/workload/templates/deployment/_containers.tpl b/charts/workload/templates/deployment/_containers.tpl index 35b02b9..507d02a 100644 --- a/charts/workload/templates/deployment/_containers.tpl +++ b/charts/workload/templates/deployment/_containers.tpl @@ -78,6 +78,9 @@ volumeMounts: {{- range $mountName, $mountEntry := $mountData }} {{- /* (4) */}} - name: {{ printf "%s-file" $mountName }} mountPath: {{ $mountEntry.path }} +{{- if $mountEntry.subPath }} {{- /* (5) */}} + subPath: {{- $mountEntry.subPath }} +{{- end }} {{- /* /(5) */}} {{- end }} {{- /* /(4) */}} {{- end }} {{- /* /(3) */}} {{- if eq $mountKind "extraVolumes" }} {{- /* (3) */}}