Fix file subpath

This commit is contained in:
Nikolai Rodionov 2024-05-21 10:05:36 +02:00
parent b5cdea0380
commit aebbf3ea9f
Signed by: allanger
GPG Key ID: 0AA46A90E25592AD
2 changed files with 4 additions and 1 deletions

View File

@ -2,7 +2,7 @@ apiVersion: v2
name: softplayer-lib-workload name: softplayer-lib-workload
description: A library to be reused accross softplayer charts description: A library to be reused accross softplayer charts
type: library type: library
version: 0.1.3 version: 0.1.4
maintainers: maintainers:
- name: allanger - name: allanger
email: allanger@badhouseplants.net email: allanger@badhouseplants.net

View File

@ -78,6 +78,9 @@ volumeMounts:
{{- range $mountName, $mountEntry := $mountData }} {{- /* (4) */}} {{- range $mountName, $mountEntry := $mountData }} {{- /* (4) */}}
- name: {{ printf "%s-file" $mountName }} - name: {{ printf "%s-file" $mountName }}
mountPath: {{ $mountEntry.path }} mountPath: {{ $mountEntry.path }}
{{- if $mountEntry.subPath }} {{- /* (5) */}}
subPath: {{- $mountEntry.subPath }}
{{- end }} {{- /* /(5) */}}
{{- end }} {{- /* /(4) */}} {{- end }} {{- /* /(4) */}}
{{- end }} {{- /* /(3) */}} {{- end }} {{- /* /(3) */}}
{{- if eq $mountKind "extraVolumes" }} {{- /* (3) */}} {{- if eq $mountKind "extraVolumes" }} {{- /* (3) */}}