- name: config-volume
configMap:
name: {{ include "ricxapp.configmapname" . }}-appconfig
+ {{- if .Values.controls }}
{{- if .Values.controls.fileStorage }}
- name: diskwriter
hostPath:
path: {{ .Values.storage.mountPath }}
type: DirectoryOrCreate
{{- end }}
+ {{- end }}
containers:
{{- $containers := .Values.containers }}
{{- $ports := .Values.messaging.ports }}
volumeMounts:
- name: config-volume
mountPath: {{ .Values.appconfig.path }}
+ {{- if .Values.controls }}
{{- if .Values.controls.fileStorage }}
- name: diskwriter
mountPath: {{ .Values.storage.mountPath }}
{{- end }}
+ {{- end }}
envFrom:
- configMapRef:
name: {{ include "ricxapp.configmapname" . }}-appenv