Skip to content

Commit e7814a7

Browse files
committed
rename iocLocation to epicsDomain
1 parent 5976bf1 commit e7814a7

File tree

3 files changed

+21
-9
lines changed

3 files changed

+21
-9
lines changed

Charts/dev-c7/templates/statefulset.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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 }}

Charts/dev-c7/values.schema.json

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,12 @@
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"
@@ -22,6 +28,10 @@
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"
@@ -56,10 +66,6 @@
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"

Charts/dev-c7/values.yaml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
iocName: ""
1313
# @schema description: the IOC release, used to generate the /dls_sw/prod path to iocName
1414
iocVersion: ""
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
1818
epicsVersion: R3.14.12.7
1919

@@ -36,7 +36,10 @@ image:
3636
command:
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
4245
hostNetwork: 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

0 commit comments

Comments
 (0)