Skip to content

Commit 6464a7c

Browse files
committed
fix opi folder mounts
1 parent 1752a8c commit 6464a7c

File tree

3 files changed

+10
-7
lines changed

3 files changed

+10
-7
lines changed

Charts/fastcs/templates/statefulset.yaml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ spec:
110110
{{- end }}
111111
{{- with $.Values.opisMountPoint }}
112112
- name: opis-volume
113-
mountPath: .
113+
mountPath: {{ . }}
114114
subPath: {{ $.Release.Name }}
115115
{{- end }}
116116
- name: config-volume
@@ -171,9 +171,9 @@ spec:
171171
{{- with .Values.volumeMounts }}
172172
{{- toYaml . | nindent 12 }}
173173
{{- end }}
174-
{{- if $.Values.mountEpicsOpis | default true }}
174+
{{- with $.Values.opisMountPoint }}
175175
- name: opis-volume
176-
mountPath: /epics/opi
176+
mountPath: {{ . }}
177177
subPath: {{ $.Release.Name }}
178178
{{- end }}
179179
- name: config-volume
@@ -190,7 +190,10 @@ spec:
190190
{{- with .Values.volumes }}
191191
{{- toYaml . | nindent 8 }}
192192
{{- end }}
193-
{{- if $.Values.mountEpicsOpis | default true }}
193+
# if a mount point has been specified, claim a PVC to mount
194+
# the PVC name will be ixx-epics-opis for IOCs (created in $opisClaim above)
195+
# the PVC name must be specified in values.yaml for non-IOC services
196+
{{- if .Values.opisMountPoint | default false }}
194197
- name: opis-volume
195198
persistentVolumeClaim:
196199
# use the supplied claim name or default to one based on ioc_group

Charts/fastcs/values.schema.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@
155155
},
156156
"opisClaim": {
157157
"description": "name of the PVC to use to store opi files, leave blank for IOCs - will then default to ixx-epics-opis",
158-
"type": "null"
158+
"type": "string"
159159
},
160160
"opisMountPoint": {
161161
"description": "where to mount the opis volume inside the container",

Charts/fastcs/values.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,10 +71,10 @@ autostart: true
7171
configFolder: /config
7272

7373
# @schema description: name of the PVC to use to store opi files, leave blank for IOCs - will then default to ixx-epics-opis
74-
opisClaim:
74+
opisClaim: ""
7575

7676
# @schema description: where to mount the opis volume inside the container
77-
opisMountPoint: /epics/opi
77+
opisMountPoint: ""
7878

7979
# @schema description: set to true of IOCs in services repos
8080
is_ioc: false

0 commit comments

Comments
 (0)