Commit dab441df authored by Waqar Ahmed's avatar Waqar Ahmed

Use dataset name to retrieve mountpath for ix-chart

parent 7bd07afe
...@@ -10,13 +10,15 @@ volumes: ...@@ -10,13 +10,15 @@ volumes:
path: {{ $hostPathConfiguration.hostPath }} path: {{ $hostPathConfiguration.hostPath }}
{{- end }} {{- end }}
{{- range $index, $hostPathConfiguration := .Values.ixVolumes }} {{- range $index, $hostPathConfiguration := .Values.ixVolumes }}
- name: ix-host-volume-{{ $.Release.Name }}-{{ $index }} {{ $dsName := base $hostPathConfiguration.hostPath }}
- name: ix-host-volume-{{ $.Release.Name }}-{{ $dsName }}
hostPath: hostPath:
path: {{ $hostPathConfiguration.hostPath }} path: {{ $hostPathConfiguration.hostPath }}
{{- end }} {{- end }}
{{- end }} {{- end }}
{{- end }} {{- end }}
{{/* {{/*
Volume Mounts Configuration Volume Mounts Configuration
*/}} */}}
...@@ -28,9 +30,9 @@ volumeMounts: ...@@ -28,9 +30,9 @@ volumeMounts:
name: ix-host-path-{{ $.Release.Name }}-{{ $index }} name: ix-host-path-{{ $.Release.Name }}-{{ $index }}
readOnly: {{ $hostPathConfiguration.readOnly }} readOnly: {{ $hostPathConfiguration.readOnly }}
{{- end }} {{- end }}
{{- range $index, $hostPathConfiguration := .Values.ixVolumes }} {{- range $index, $hostPathConfiguration := .Values.volumes }}
- mountPath: {{ $hostPathConfiguration.mountPath }} - mountPath: {{ $hostPathConfiguration.mountPath }}
name: ix-host-volume-{{ $.Release.Name }}-{{ $index }} name: ix-host-volume-{{ $.Release.Name }}-{{ $hostPathConfiguration.datasetName }}
{{- end }} {{- end }}
{{- end }} {{- end }}
{{- end }} {{- end }}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment