Skip to content

Commit db9ec8f

Browse files
authored
Merge pull request #908 from yoogoc/charts-add-extra-volumes
feat(chart): support volumes and volumeMounts in opensandbox-server
2 parents 3148405 + 4f79268 commit db9ec8f

2 files changed

Lines changed: 8 additions & 0 deletions

File tree

kubernetes/charts/opensandbox-server/templates/server.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,9 @@ spec:
114114
mountPath: /etc/opensandbox/config.toml
115115
subPath: config.toml
116116
readOnly: true
117+
{{- with .Values.server.volumeMounts }}
118+
{{- toYaml . | nindent 12 }}
119+
{{- end }}
117120
livenessProbe:
118121
httpGet:
119122
path: /health
@@ -134,6 +137,9 @@ spec:
134137
- name: config
135138
configMap:
136139
name: {{ include "opensandbox-server.fullname" . }}-config
140+
{{- with .Values.server.volumes }}
141+
{{- toYaml . | nindent 8 }}
142+
{{- end }}
137143
{{- with .Values.server.affinity }}
138144
affinity:
139145
{{- toYaml . | nindent 8 }}

kubernetes/charts/opensandbox-server/values.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,8 @@ server:
4141

4242
tolerations: []
4343
affinity: {}
44+
volumeMounts: []
45+
volumes: []
4446

4547
# Gateway (components/ingress): when enabled, writes config [ingress] and deploys the gateway
4648
gateway:

0 commit comments

Comments
 (0)