File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
charts/hdfs-config-k8s/templates Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -51,12 +51,12 @@ last item does not have comma. It uses index 0 for the last item since that is
51
51
the only special index that helm template gives us.
52
52
*/} }
53
53
{ {- define " datanode-data-dirs" -} }
54
- { {- range $index , $path := .Values.dataNodeHostPath -} }
54
+ { {- range $index , $path := .Values.global. dataNodeHostPath -} }
55
55
{ {- if ne $index 0 -} }
56
56
/hadoop/dfs/data/{ { $index } },
57
57
{ {- end -} }
58
58
{ {- end -} }
59
- { {- range $index , $path := .Values.dataNodeHostPath -} }
59
+ { {- range $index , $path := .Values.global. dataNodeHostPath -} }
60
60
{ {- if eq $index 0 -} }
61
61
/hadoop/dfs/data/{ { $index } }
62
62
{ {- end -} }
Original file line number Diff line number Diff line change @@ -192,6 +192,6 @@ data:
192
192
</property>
193
193
<property>
194
194
<name>dfs.datanode.data.dir</name>
195
- <value>{{ join ", " .Values.global.dataNodeHostPath }}</value>
195
+ <value>{{ template "datanode-data-dirs " . }}</value>
196
196
</property>
197
197
</configuration>
You can’t perform that action at this time.
0 commit comments