File tree Expand file tree Collapse file tree 3 files changed +21
-9
lines changed
Expand file tree Collapse file tree 3 files changed +21
-9
lines changed Original file line number Diff line number Diff line change @@ -54,13 +54,13 @@ spec:
5454 {{- .Values.command | toYaml | nindent 12 }}
5555 stdin : true
5656 tty : true
57- {{- $iocLocation := (.Values.iocLocation | default $location) | upper }}
57+ {{- $epicsDomain := (.Values.epicsDomain | default $location) | upper }}
5858 {{- $iocName := (.Values.iocName | default .Release.Name) | upper }}
5959 {{ $workingDir := "" }} {{- /* create the variable in global scope before setting in if/else!!! */ -}}
6060 {{- if .Values.iocPath }}
6161 {{- $workingDir = printf "%s/%s" .Values.iocPath $iocName }}
6262 {{- else }}
63- {{- $workingDir = printf "/dls_sw/prod/%s/ioc/%s/%s/%s" .Values.epicsVersion $iocLocation $iocName .Values.iocVersion }}
63+ {{- $workingDir = printf "/dls_sw/prod/%s/ioc/%s/%s/%s" .Values.epicsVersion $epicsDomain $iocName .Values.iocVersion }}
6464 {{- end }}
6565 workingDir : {{ $workingDir }}
6666 {{- with .Values.securityContext }}
Original file line number Diff line number Diff line change 88 "$ref" : " https://raw.githubusercontent.com/yannh/kubernetes-json-schema/master/v1.33.3/affinity.json" ,
99 "type" : " object"
1010 },
11+ "args" : {
12+ "type" : " array" ,
13+ "items" : {
14+ "type" : " string"
15+ }
16+ },
1117 "autosavePath" : {
1218 "description" : " Full path to an IOC instance's autosave folder. Overrides autosaveRootPath when not blank" ,
1319 "type" : " string"
2228 "type" : " string"
2329 }
2430 },
31+ "epicsDomain" : {
32+ "description" : " IOCs DLS EPICS Domain (e.g. BL16I FE02J SR03C)" ,
33+ "type" : " string"
34+ },
2535 "epicsVersion" : {
2636 "description" : " the EPICS version, used to generate the /dls_sw/prod path to iocName" ,
2737 "type" : " string"
5666 "imagePullSecrets" : {
5767 "type" : " array"
5868 },
59- "iocLocation" : {
60- "description" : " the IOC location (e.g. BL16I FE02J SR03C)" ,
61- "type" : " string"
62- },
6369 "iocName" : {
6470 "description" : " the folder name for the compiled IOC, defaults to ucase of the services folder name" ,
6571 "type" : " string"
Original file line number Diff line number Diff line change 1212iocName : " "
1313# @schema description: the IOC release, used to generate the /dls_sw/prod path to iocName
1414iocVersion : " "
15- # @schema description: the IOC location (e.g. BL16I FE02J SR03C)
16- iocLocation : " "
15+ # @schema description: IOCs DLS EPICS Domain (e.g. BL16I FE02J SR03C)
16+ epicsDomain : " "
1717# @schema description: the EPICS version, used to generate the /dls_sw/prod path to iocName
1818epicsVersion : R3.14.12.7
1919
@@ -36,7 +36,10 @@ image:
3636command :
3737 - bash
3838 - -lc
39- - stdio-expose ./bin/linux-x86_64/st*.sh
39+ - stdio-expose
40+
41+ args :
42+ - ./bin/linux-x86_64/st*.sh
4043
4144# @schema description: enable host networking for the pod
4245hostNetwork : false
@@ -86,6 +89,9 @@ volumes:
8689 - name : etc
8790 hostPath :
8891 path : /dls_sw/etc
92+ - name : apps
93+ hostPath :
94+ path : /dls_sw/apps
8995
9096# volumeMounts for the Deployment.
9197# @schema $ref: $k8s/container.json#/properties/volumeMounts
You can’t perform that action at this time.
0 commit comments