فهرست منبع

Fix line indent for volume configuration

Waqar Ahmed 4 سال پیش
والد
کامیت
de3948ecdd
1فایلهای تغییر یافته به همراه3 افزوده شده و 2 حذف شده
  1. 3 2
      library/common/templates/lib/storage/_volume.tpl

+ 3 - 2
library/common/templates/lib/storage/_volume.tpl

@@ -14,10 +14,11 @@ This expects a dictionary in the following format:
 {{- define "common.storage.volumeConfig" -}}
 {{- define "common.storage.volumeConfig" -}}
 {{- $values := . -}}
 {{- $values := . -}}
 {{- include "common.schema.validateKeys" (dict "values" $values "checkKeys" (list "name")) -}}
 {{- include "common.schema.validateKeys" (dict "values" $values "checkKeys" (list "name")) -}}
-- name: {{ $values.name }}
 {{- if $values.emptyDirVolumes -}}
 {{- if $values.emptyDirVolumes -}}
+- name: {{ $values.name }}
   emptyDir: {}
   emptyDir: {}
 {{- else -}}
 {{- else -}}
+- name: {{ $values.name }}
   hostPath:
   hostPath:
     path: {{ template "common.storage.configuredHostPath" $values }}
     path: {{ template "common.storage.configuredHostPath" $values }}
 {{- end -}}
 {{- 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")) -}}
 {{- include "common.schema.validateKeys" (dict "values" $values "checkKeys" (list "ixVolumes" "volumes")) -}}
 {{- range $vol := $values.volumes -}}
 {{- range $vol := $values.volumes -}}
 {{- $_ := set $vol "ixVolumes" $values.ixVolumes -}}
 {{- $_ := set $vol "ixVolumes" $values.ixVolumes -}}
-{{- include "common.storage.volumeConfig" $vol -}}
+{{- include "common.storage.volumeConfig" $vol | nindent 0 -}}
 {{- end -}}
 {{- end -}}
 {{- end -}}
 {{- end -}}