From 4048e9c9b6985c54595b83e9d44c6c76701e90cb Mon Sep 17 00:00:00 2001 From: koh-satoh-wpg Date: Tue, 30 Jan 2024 18:47:15 +0900 Subject: [PATCH] Run frigate & place another space before the values comment --- charts/trino/README.md | 4 ++++ .../templates/deployment-coordinator.yaml | 6 ++++++ charts/trino/templates/deployment-worker.yaml | 6 ++++++ charts/trino/values.yaml | 18 ++++++++++++++++++ 4 files changed, 34 insertions(+) diff --git a/charts/trino/README.md b/charts/trino/README.md index 3c2d904a..57019345 100644 --- a/charts/trino/README.md +++ b/charts/trino/README.md @@ -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` | | `[]` | @@ -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` | | `[]` | diff --git a/charts/trino/templates/deployment-coordinator.yaml b/charts/trino/templates/deployment-coordinator.yaml index 3020b96e..9e1d3f2e 100644 --- a/charts/trino/templates/deployment-coordinator.yaml +++ b/charts/trino/templates/deployment-coordinator.yaml @@ -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 }} @@ -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 }} diff --git a/charts/trino/templates/deployment-worker.yaml b/charts/trino/templates/deployment-worker.yaml index 99a3281f..246b64e1 100644 --- a/charts/trino/templates/deployment-worker.yaml +++ b/charts/trino/templates/deployment-worker.yaml @@ -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 }} @@ -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 }} diff --git a/charts/trino/values.yaml b/charts/trino/values.yaml index e6eccf1e..c422d495 100644 --- a/charts/trino/values.yaml +++ b/charts/trino/values.yaml @@ -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: {} @@ -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: {}