Skip to content

Commit f7f72f0

Browse files
committed
remove snake case
1 parent 9e45f2e commit f7f72f0

File tree

6 files changed

+30
-30
lines changed

6 files changed

+30
-30
lines changed

Charts/dev-c7/templates/statefulset.yaml

Lines changed: 8 additions & 8 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-
{{- $domain := (.Values.ioc_domain | default $location) | upper }}
58-
{{- $ioc_name := (.Values.ioc_name | default .Release.Name) | upper }}
57+
{{- $ioc_location := (.Values.iocLocation | default $location) | upper }}
58+
{{- $ioc_name := (.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 }}
@@ -70,7 +70,7 @@ spec:
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:
@@ -95,7 +95,7 @@ spec:
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 }}

Charts/dev-c7/values.schema.json

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@
2222
"type": "string"
2323
}
2424
},
25-
"epics_version": {
26-
"description": "the EPICS version, used to generate the /dls_sw/prod path to ioc_name",
25+
"epicsVersion": {
26+
"description": "the EPICS version, used to generate the /dls_sw/prod path to iocName",
2727
"type": "string"
2828
},
2929
"fullnameOverride": {
@@ -56,20 +56,20 @@
5656
"imagePullSecrets": {
5757
"type": "array"
5858
},
59-
"ioc_domain": {
60-
"description": "the IOC domain (e.g. BL16I FE02J SR03C)",
59+
"iocLocation": {
60+
"description": "the IOC location (e.g. BL16I FE02J SR03C)",
6161
"type": "string"
6262
},
63-
"ioc_name": {
63+
"iocName": {
6464
"description": "the folder name for the compiled IOC, defaults to ucase of the services folder name",
6565
"type": "string"
6666
},
67-
"ioc_path": {
68-
"description": "overrides the parent folder for ioc_name to any path in /dls_sw/work or /dls_sw/prod",
67+
"iocPath": {
68+
"description": "overrides the parent folder for iocName to any path in /dls_sw/work or /dls_sw/prod",
6969
"type": "string"
7070
},
71-
"ioc_version": {
72-
"description": "the IOC release, used to generate the /dls_sw/prod path to ioc_name",
71+
"iocVersion": {
72+
"description": "the IOC release, used to generate the /dls_sw/prod path to iocName",
7373
"type": "string"
7474
},
7575
"nameOverride": {

Charts/dev-c7/values.yaml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,16 @@
99
# https://github.com/losisin/helm-values-schema-json.git
1010

1111
# @schema description: the folder name for the compiled IOC, defaults to ucase of the services folder name
12-
ioc_name: ""
13-
# @schema description: the IOC release, used to generate the /dls_sw/prod path to ioc_name
14-
ioc_version: ""
15-
# @schema description: the IOC domain (e.g. BL16I FE02J SR03C)
16-
ioc_domain: ""
17-
# @schema description: the EPICS version, used to generate the /dls_sw/prod path to ioc_name
18-
epics_version: R3.14.12.7
19-
20-
# @schema description: overrides the parent folder for ioc_name to any path in /dls_sw/work or /dls_sw/prod
21-
ioc_path: ""
12+
iocName: ""
13+
# @schema description: the IOC release, used to generate the /dls_sw/prod path to iocName
14+
iocVersion: ""
15+
# @schema description: the IOC location (e.g. BL16I FE02J SR03C)
16+
iocLocation: ""
17+
# @schema description: the EPICS version, used to generate the /dls_sw/prod path to iocName
18+
epicsVersion: R3.14.12.7
19+
20+
# @schema description: overrides the parent folder for iocName to any path in /dls_sw/work or /dls_sw/prod
21+
iocPath: ""
2222

2323
# @schema description: shared values for all services
2424
# @schema additionalProperties: true

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,8 @@ RUN uv venv --managed-python --python 3.12 && \
8989
chmod -R a+rwX /opt/.venv
9090

9191
# Make a psuedo home directory for running in cluster
92-
COPY epics_home /epics_home
93-
RUN chmod a+rws /epics_home
92+
COPY epicsHome /epicsHome
93+
RUN chmod a+rws /epicsHome
9494

9595
# Add in netcat for network diagnosis
9696
RUN yum install -y netcat
File renamed without changes.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# epics_home
1+
# epicsHome
22

33
This is a psuedo home directory for launching EPICS IOCs in-cluster using dev-c7.
44

0 commit comments

Comments
 (0)