@@ -52,27 +52,29 @@ spec:
5252 image : " {{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
5353 command :
5454 {{- .Values.command | toYaml | nindent 12 }}
55+ args :
56+ {{- .Values.args | toYaml | nindent 12 }}
5557 stdin : true
5658 tty : true
5759 {{- $epicsDomain := (.Values.epicsDomain | default $location) | upper }}
5860 {{- $iocName := (.Values.iocName | default .Release.Name) | upper }}
59- {{ $workingDir := .Values.workingDir }}
60- {{ if eq $workingDir "" }}
61+ {{- $workingDir := .Values.workingDir }}
62+ {{- if eq $workingDir "" }}
6163 {{- if .Values.iocPath }}
6264 {{- $workingDir = printf "%s/%s" .Values.iocPath $iocName }}
6365 {{- else }}
6466 {{- $workingDir = printf "/dls_sw/prod/%s/ioc/%s/%s/%s" .Values.epicsVersion $epicsDomain $iocName .Values.iocVersion }}
6567 {{- end }}
66- {{ end }}
68+ {{- end }}
6769 workingDir : {{ .Values.workingDir | default $workingDir }}
6870 {{- with .Values.securityContext }}
6971 securityContext :
7072 {{- toYaml . | nindent 12 }}
7173 {{- end }}
7274 env :
73- # psuedo home sets up epics module etc.
74- - name : HOME
75- value : /epicsHome
75+ # psuedo home sets up epics module etc.
76+ - name : HOME
77+ value : /epicsHome
7678 imagePullPolicy : {{ .Values.image.pullPolicy }}
7779 {{- with .Values.livenessProbe }}
7880 livenessProbe :
8991 {{- with .Values.volumeMounts }}
9092 volumeMounts :
9193 {{- toYaml . | nindent 12 }}
92- {{ - with .Values.extraVolumeMounts }}
94+ {{- with $ .Values.extraVolumeMounts }}
9395 {{- toYaml . | nindent 12 }}
9496 {{- end }}
9597 {{- end }}
@@ -107,7 +109,7 @@ spec:
107109 {{- with .Values.volumes }}
108110 volumes :
109111 {{- toYaml . | nindent 8 }}
110- {{ - with .Values.extraVolumes }}
112+ {{- with $ .Values.extraVolumes }}
111113 {{- toYaml . | nindent 8 }}
112114 {{- end }}
113115 {{- end }}
0 commit comments