mirror of
https://github.com/truenas/charts.git
synced 2026-05-16 14:12:59 +08:00
Fix line indent for volume configuration
This commit is contained in:
@@ -14,10 +14,11 @@ This expects a dictionary in the following format:
|
||||
{{- define "common.storage.volumeConfig" -}}
|
||||
{{- $values := . -}}
|
||||
{{- include "common.schema.validateKeys" (dict "values" $values "checkKeys" (list "name")) -}}
|
||||
- name: {{ $values.name }}
|
||||
{{- if $values.emptyDirVolumes -}}
|
||||
- name: {{ $values.name }}
|
||||
emptyDir: {}
|
||||
{{- else -}}
|
||||
- name: {{ $values.name }}
|
||||
hostPath:
|
||||
path: {{ template "common.storage.configuredHostPath" $values }}
|
||||
{{- end -}}
|
||||
@@ -46,6 +47,6 @@ This expects a dictionary to be provided in the following format:
|
||||
{{- include "common.schema.validateKeys" (dict "values" $values "checkKeys" (list "ixVolumes" "volumes")) -}}
|
||||
{{- range $vol := $values.volumes -}}
|
||||
{{- $_ := set $vol "ixVolumes" $values.ixVolumes -}}
|
||||
{{- include "common.storage.volumeConfig" $vol -}}
|
||||
{{- include "common.storage.volumeConfig" $vol | nindent 0 -}}
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
|
||||
Reference in New Issue
Block a user