Skip to content

Commit ab3e296

Browse files
committed
add autosaveRootPath for generic handling of autosave folder
1 parent 3518064 commit ab3e296

File tree

3 files changed

+20
-2
lines changed

3 files changed

+20
-2
lines changed

Charts/dev-c7/templates/statefulset.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,12 @@ spec:
9292
- name: autosave
9393
mountPath: {{ . }}
9494
readOnly: false
95+
{{- else }}
96+
{{- with .Values.autosaveRootPath }}
97+
- name: autosave
98+
mountPath: {{ . }}/{{ $ioc_name }}
99+
readOnly: false
100+
{{- end }}
95101
{{- end }}
96102
{{- with .Values.volumes }}
97103
volumes:
@@ -101,6 +107,12 @@ spec:
101107
- name: autosave
102108
hostPath:
103109
path: {{ . }}
110+
{{- else }}
111+
{{- with .Values.autosaveRootPath }}
112+
- name: autosave
113+
hostPath:
114+
path: {{ . }}/{{ $ioc_name }}
115+
{{- end }}
104116
{{- end }}
105117
{{- with .Values.nodeSelector }}
106118
nodeSelector:

Charts/dev-c7/values.schema.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,10 @@
99
"type": "object"
1010
},
1111
"autosavePath": {
12-
"description": "Full path to an IOC instance's autosave folder",
12+
"description": "Full path to an IOC instance's autosave folder. Overrides autosaveRootPath when not blank",
13+
"type": "string"
14+
},
15+
"autosaveRootPath": {
1316
"type": "string"
1417
},
1518
"command": {

Charts/dev-c7/values.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,10 @@ securityContext: {}
6262
# @schema $ref: $k8s/container.json#/properties/resources
6363
resources: {}
6464

65-
# @schema description: Full path to an IOC instance's autosave folder
65+
# @cschema description: Path to the folder above the IOC's autosave folder. Used to generate the autosavePath as autosaveRootPath/iocName
66+
autosaveRootPath: ""
67+
68+
# @schema description: Full path to an IOC instance's autosave folder. Overrides autosaveRootPath when not blank
6669
autosavePath: ""
6770

6871
# volumes for the Deployment.

0 commit comments

Comments
 (0)