Skip to content

Commit

Permalink
Add additionalVolumes and additionalVolumeMounts
Browse files Browse the repository at this point in the history
  • Loading branch information
koh-satoh-wpg authored Feb 28, 2024
1 parent 2c1d97b commit 6b68924
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 0 deletions.
4 changes: 4 additions & 0 deletions charts/trino/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,8 @@ The following table lists the configurable parameters of the Trino chart and the
| `coordinator.tolerations` | | `[]` |
| `coordinator.affinity` | | `{}` |
| `coordinator.additionalConfigFiles` | | `{}` |
| `coordinator.additionalVolumes` | One or more additional volumes to add to the coordinator. | `[]` |
| `coordinator.additionalVolumeMounts` | One or more additional volume mounts to add to the coordinator. | `[]` |
| `coordinator.annotations` | | `{}` |
| `coordinator.labels` | | `{}` |
| `coordinator.secretMounts` | | `[]` |
Expand All @@ -89,6 +91,8 @@ The following table lists the configurable parameters of the Trino chart and the
| `worker.tolerations` | | `[]` |
| `worker.affinity` | | `{}` |
| `worker.additionalConfigFiles` | | `{}` |
| `worker.additionalVolumes` | One or more additional volume mounts to add to all workers. | `[]` |
| `worker.additionalVolumeMounts` | One or more additional volume mounts to add to all workers. | `[]` |
| `worker.annotations` | | `{}` |
| `worker.labels` | | `{}` |
| `worker.secretMounts` | | `[]` |
Expand Down
6 changes: 6 additions & 0 deletions charts/trino/templates/deployment-coordinator.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,9 @@ spec:
secret:
secretName: {{ .secretName }}
{{- end }}
{{- with .Values.coordinator.additionalVolumes }}
{{- . | toYaml | nindent 8 }}
{{- end }}
{{- if .Values.initContainers.coordinator }}
initContainers:
{{- tpl (toYaml .Values.initContainers.coordinator) . | nindent 6 }}
Expand Down Expand Up @@ -130,6 +133,9 @@ spec:
- mountPath: {{ .Values.server.config.path }}/auth
name: password-volume
{{- end }}
{{- with .Values.coordinator.additionalVolumeMounts }}
{{- . | toYaml | nindent 12 }}
{{- end }}
ports:
- name: http
containerPort: {{ .Values.service.port }}
Expand Down
6 changes: 6 additions & 0 deletions charts/trino/templates/deployment-worker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,9 @@ spec:
secret:
secretName: {{ .secretName }}
{{- end }}
{{- with .Values.worker.additionalVolumes }}
{{- . | toYaml | nindent 8 }}
{{- end }}
{{- if .Values.initContainers.worker }}
initContainers:
{{- tpl (toYaml .Values.initContainers.worker) . | nindent 6 }}
Expand Down Expand Up @@ -96,6 +99,9 @@ spec:
- name: {{ .name }}
mountPath: {{ .path }}
{{- end }}
{{- with .Values.worker.additionalVolumeMounts }}
{{- . | toYaml | nindent 12 }}
{{- end }}
ports:
- name: http
containerPort: {{ .Values.service.port }}
Expand Down
18 changes: 18 additions & 0 deletions charts/trino/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -302,6 +302,15 @@ coordinator:

additionalConfigFiles: {}

additionalVolumes: [] # One or more additional volumes to add to the coordinator.
# - name: extras
# emptyDir: {}

additionalVolumeMounts: [] # One or more additional volume mounts to add to the coordinator.
# - name: extras
# mountPath: /usr/share/extras
# readOnly: true

annotations: {}

labels: {}
Expand Down Expand Up @@ -362,6 +371,15 @@ worker:

additionalConfigFiles: {}

additionalVolumes: [] # One or more additional volume mounts to add to all workers.
# - name: extras
# emptyDir: {}

additionalVolumeMounts: [] # One or more additional volume mounts to add to all workers.
# - name: extras
# mountPath: /usr/share/extras
# readOnly: true

annotations: {}

labels: {}
Expand Down

0 comments on commit 6b68924

Please sign in to comment.