@@ -54,13 +54,13 @@ spec:
5454 {{- .Values.command | toYaml | nindent 12 }}
5555 stdin : true
5656 tty : true
57- {{- $domain := (.Values.ioc_domain | default $location) | upper }}
58- {{- $ioc_name := (.Values.ioc_name | default .Release.Name) | upper }}
57+ {{- $iocLocation := (.Values.iocLocation | default $location) | upper }}
58+ {{- $iocName := (.Values.iocName | default .Release.Name) | upper }}
5959 {{ $workingDir := "" }} {{- /* create the variable in global scope before setting in if/else!!! */ -}}
60- {{- if .Values.ioc_path }}
61- {{- $workingDir = printf "%s/%s" .Values.ioc_path $ioc_name }}
60+ {{- if .Values.iocPath }}
61+ {{- $workingDir = printf "%s/%s" .Values.iocPath $iocName }}
6262 {{- else }}
63- {{- $workingDir = printf "/dls_sw/prod/%s/ioc/%s/%s/%s" .Values.epics_version $domain $ioc_name .Values.ioc_version }}
63+ {{- $workingDir = printf "/dls_sw/prod/%s/ioc/%s/%s/%s" .Values.epicsVersion $iocLocation $iocName .Values.iocVersion }}
6464 {{- end }}
6565 workingDir : {{ $workingDir }}
6666 {{- with .Values.securityContext }}
7070 env :
7171 # psuedo home sets up epics module etc.
7272 - name : HOME
73- value : /epics_home
73+ value : /epicsHome
7474 imagePullPolicy : {{ .Values.image.pullPolicy }}
7575 {{- with .Values.livenessProbe }}
7676 livenessProbe :
9595 {{- else }}
9696 {{- with .Values.autosaveRootPath }}
9797 - name : autosave
98- mountPath : {{ . }}/{{ $ioc_name }}
98+ mountPath : {{ . }}/{{ $iocName }}
9999 readOnly : false
100100 {{- end }}
101101 {{- end }}
@@ -111,7 +111,7 @@ spec:
111111 {{- with .Values.autosaveRootPath }}
112112 - name : autosave
113113 hostPath :
114- path : {{ . }}/{{ $ioc_name }}
114+ path : {{ . }}/{{ $iocName }}
115115 {{- end }}
116116 {{- end }}
117117 {{- with .Values.nodeSelector }}
0 commit comments