diff --git a/helm/hpcc/templates/_helpers.tpl b/helm/hpcc/templates/_helpers.tpl index bfbb1d2c42f..e04a61069b7 100644 --- a/helm/hpcc/templates/_helpers.tpl +++ b/helm/hpcc/templates/_helpers.tpl @@ -308,6 +308,9 @@ Add ConfigMap volume mount for a component mountPath: /tmp - name: {{ .name }}-hpcctmp-volume mountPath: /var/lib/HPCCSystems +{{- if .tmpSubPath }} + subPath: {{ .tmpSubPath | quote }} +{{- end }} - name: {{ .name }}-configmap-volume mountPath: /etc/config {{- end -}} diff --git a/helm/hpcc/templates/thor.yaml b/helm/hpcc/templates/thor.yaml index 4783f057d0b..06f2cc0bb8f 100644 --- a/helm/hpcc/templates/thor.yaml +++ b/helm/hpcc/templates/thor.yaml @@ -244,7 +244,7 @@ data: {{ include "hpcc.mergeEnvironments" $configCtx.me.env | indent 12 }} workingDir: /var/lib/HPCCSystems volumeMounts: -{{ include "hpcc.addConfigMapVolumeMount" $configCtx.me | indent 12 }} +{{ include "hpcc.addConfigMapVolumeMount" (deepCopy $configCtx.me | merge (dict "tmpSubPath" $containerNum)) | indent 12 }} {{ include "hpcc.addVolumeMounts" $configCtx | indent 12 }} {{ include "hpcc.addSecretVolumeMounts" $configCtx | indent 12 }} {{ include "hpcc.addCertificateVolumeMount" (dict "root" $configCtx.root "name" $configCtx.me.name "component" "thorworker") | indent 12 }}