Skip to content

Commit 3518064

Browse files
committed
add autosave path to values
1 parent 72f81bd commit 3518064

File tree

4 files changed

+22
-8
lines changed

4 files changed

+22
-8
lines changed

Charts/dev-c7/templates/statefulset.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,10 +88,20 @@ spec:
8888
volumeMounts:
8989
{{- toYaml . | nindent 12 }}
9090
{{- end }}
91+
{{- with .Values.autosavePath }}
92+
- name: autosave
93+
mountPath: {{ . }}
94+
readOnly: false
95+
{{- end }}
9196
{{- with .Values.volumes }}
9297
volumes:
9398
{{- toYaml . | nindent 8 }}
9499
{{- end }}
100+
{{- with .Values.autosavePath }}
101+
- name: autosave
102+
hostPath:
103+
path: {{ . }}
104+
{{- end }}
95105
{{- with .Values.nodeSelector }}
96106
nodeSelector:
97107
{{- toYaml . | nindent 8 }}

Charts/dev-c7/values.schema.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@
88
"$ref": "https://raw.githubusercontent.com/yannh/kubernetes-json-schema/master/v1.33.3/affinity.json",
99
"type": "object"
1010
},
11+
"autosavePath": {
12+
"description": "Full path to an IOC instance's autosave folder",
13+
"type": "string"
14+
},
1115
"command": {
1216
"description": "container entry point command",
1317
"type": "array",

Charts/dev-c7/values.yaml

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -56,12 +56,15 @@ podLabels: {}
5656
# @schema $ref: $k8s/podspec.json#/properties/securityContext
5757
podSecurityContext: {}
5858

59-
# @schema $ref:$k8s/container.json#/properties/securityContext
59+
# @schema $ref:$k8s/container.json#/properties/securityContext
6060
securityContext: {}
6161

62-
# @schema $ref: $k8s/container.json#/properties/resources
62+
# @schema $ref: $k8s/container.json#/properties/resources
6363
resources: {}
6464

65+
# @schema description: Full path to an IOC instance's autosave folder
66+
autosavePath: ""
67+
6568
# volumes for the Deployment.
6669
# @schema $ref: $k8s/podspec.json#/properties/volumes
6770
volumes:
@@ -74,9 +77,6 @@ volumes:
7477
- name: epics
7578
hostPath:
7679
path: /dls_sw/epics
77-
- name: apps
78-
hostPath:
79-
path: /dls_sw/apps
8080
- name: targetos
8181
hostPath:
8282
path: /dls_sw/targetOS
@@ -96,9 +96,6 @@ volumeMounts:
9696
- name: epics
9797
mountPath: /dls_sw/epics
9898
readOnly: true
99-
- name: apps
100-
mountPath: /dls_sw/apps
101-
readOnly: true
10299
- name: targetos
103100
mountPath: /dls_sw/targetOS
104101
readOnly: true

Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,3 +91,6 @@ RUN uv venv --managed-python --python 3.12 && \
9191
# Make a psuedo home directory for running in cluster
9292
COPY epics_home /epics_home
9393
RUN chmod a+rws /epics_home
94+
95+
# Add in netcat for network diagnosis
96+
RUN yum install -y netcat

0 commit comments

Comments
 (0)