Skip to content

Commit

Permalink
Add additionalConfigFiles config.
Browse files Browse the repository at this point in the history
  • Loading branch information
przemekak authored and sopel39 committed Apr 7, 2023
1 parent f4769b7 commit 38370cb
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/trino/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.10.0
version: 0.10.1

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
Expand Down
2 changes: 2 additions & 0 deletions charts/trino/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ The following table lists the configurable parameters of the Trino chart and the
| `coordinator.nodeSelector` | | `{}` |
| `coordinator.tolerations` | | `[]` |
| `coordinator.affinity` | | `{}` |
| `coordinator.additionalConfigFiles` | | `{}` |
| `worker.jvm.maxHeapSize` | | `"8G"` |
| `worker.jvm.gcMethod.type` | | `"UseG1GC"` |
| `worker.jvm.gcMethod.g1.heapRegionSize` | | `"32M"` |
Expand All @@ -76,6 +77,7 @@ The following table lists the configurable parameters of the Trino chart and the
| `worker.nodeSelector` | | `{}` |
| `worker.tolerations` | | `[]` |
| `worker.affinity` | | `{}` |
| `worker.additionalConfigFiles` | | `{}` |
| `kafka.mountPath` | | `"/etc/trino/schemas"` |
| `kafka.tableDescriptions` | | `{}` |

Expand Down
5 changes: 5 additions & 0 deletions charts/trino/templates/configmap-coordinator.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,11 @@ data:
{{- end }}
{{ end }}

{{- range $fileName, $fileContent := .Values.coordinator.additionalConfigFiles }}
{{ $fileName }}: |
{{- $fileContent | nindent 4 }}
{{- end }}

---

{{- if .Values.accessControl }}{{- if eq .Values.accessControl.type "configmap" }}
Expand Down
5 changes: 5 additions & 0 deletions charts/trino/templates/configmap-worker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,11 @@ data:
{{- end }}
{{ end }}

{{- range $fileName, $fileContent := .Values.worker.additionalConfigFiles }}
{{ $fileName }}: |
{{- $fileContent | nindent 4 }}
{{- end }}

---

apiVersion: v1
Expand Down
4 changes: 4 additions & 0 deletions charts/trino/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,8 @@ coordinator:

affinity: {}

additionalConfigFiles: {}

worker:
jvm:
maxHeapSize: "8G"
Expand Down Expand Up @@ -239,6 +241,8 @@ worker:

affinity: {}

additionalConfigFiles: {}

kafka:
mountPath: "/etc/trino/schemas"
tableDescriptions: {}
Expand Down

0 comments on commit 38370cb

Please sign in to comment.