Skip to content

Commit 2f01c95

Browse files
committed
add extraVolumes
1 parent bbffebc commit 2f01c95

File tree

3 files changed

+28
-3
lines changed

3 files changed

+28
-3
lines changed

Charts/dev-c7/templates/statefulset.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,9 @@ spec:
8989
{{- with .Values.volumeMounts }}
9090
volumeMounts:
9191
{{- toYaml . | nindent 12 }}
92+
{{ - with .Values.extraVolumeMounts }}
93+
{{- toYaml . | nindent 12 }}
94+
{{- end }}
9295
{{- end }}
9396
{{- with .Values.autosavePath }}
9497
- name: autosave
@@ -104,6 +107,9 @@ spec:
104107
{{- with .Values.volumes }}
105108
volumes:
106109
{{- toYaml . | nindent 8 }}
110+
{{ - with .Values.extraVolumes }}
111+
{{- toYaml . | nindent 8 }}
112+
{{- end }}
107113
{{- end }}
108114
{{- with .Values.autosavePath }}
109115
- name: autosave

Charts/dev-c7/values.schema.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,16 @@
3636
"description": "the EPICS version, used to generate the /dls_sw/prod path to iocName",
3737
"type": "string"
3838
},
39+
"extraVolumeMounts": {
40+
"description": "add extra mounts without overriding the default ones",
41+
"$ref": "https://raw.githubusercontent.com/yannh/kubernetes-json-schema/master/v1.33.3/container.json#/properties/volumeMounts",
42+
"type": "array"
43+
},
44+
"extraVolumes": {
45+
"description": "add extra volumes without overriding the default ones",
46+
"$ref": "https://raw.githubusercontent.com/yannh/kubernetes-json-schema/master/v1.33.3/podspec.json#/properties/volumes",
47+
"type": "array"
48+
},
3949
"fullnameOverride": {
4050
"type": "string"
4151
},

Charts/dev-c7/values.yaml

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,10 @@ iocVersion: ""
1616
epicsDomain: ""
1717
# @schema description: the EPICS version, used to generate the /dls_sw/prod path to iocName
1818
epicsVersion: R3.14.12.7
19-
# @schema description: override the cwd for launching the IOC, defaults to /dls_sw/prod/$epicsVersion/ioc/$epicsDomain/$iocName/$iocVersion
20-
workingDir: ""
21-
2219
# @schema description: overrides the parent folder for iocName to any path in /dls_sw/work or /dls_sw/prod
2320
iocPath: ""
21+
# @schema description: override the cwd for launching the IOC, defaults to /dls_sw/prod/$epicsVersion/ioc/$epicsDomain/$iocName/$iocVersion
22+
workingDir: ""
2423

2524
# @schema description: shared values for all services
2625
# @schema additionalProperties: true
@@ -95,6 +94,11 @@ volumes:
9594
hostPath:
9695
path: /dls_sw/apps
9796

97+
# extraVolumes for the Deployment.
98+
# @schema description: add extra volumes without overriding the default ones
99+
# @schema $ref: $k8s/podspec.json#/properties/volumes
100+
extraVolumes: []
101+
98102
# volumeMounts for the Deployment.
99103
# @schema $ref: $k8s/container.json#/properties/volumeMounts
100104
volumeMounts:
@@ -114,6 +118,11 @@ volumeMounts:
114118
mountPath: /dls_sw/etc
115119
readOnly: true
116120

121+
# extraVolumeMounts for the Deployment.
122+
# @schema description: add extra mounts without overriding the default ones
123+
# @schema $ref: $k8s/container.json#/properties/volumeMounts
124+
extraVolumeMounts: []
125+
117126
# @schema $ref: $k8s/podspec.json#/properties/tolerations
118127
tolerations: []
119128

0 commit comments

Comments
 (0)