Skip to content

Commit

Permalink
Add templating support in additionalConfigFiles
Browse files Browse the repository at this point in the history
  • Loading branch information
sdaberdaku authored and nineinchnick committed Oct 3, 2024
1 parent 476af36 commit ece02db
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 8 deletions.
8 changes: 4 additions & 4 deletions charts/trino/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -472,11 +472,11 @@ Fast distributed SQL query engine for big data analytics that helps you explore
* `coordinator.affinity` - object, default: `{}`
* `coordinator.additionalConfigFiles` - object, default: `{}`

Additional config files placed in the default configuration directory.
Additional config files placed in the default configuration directory. Supports templating the files' contents with `tpl`.
Example:
```yaml
secret.txt: |
secret-value
secret-value={{- .Values.someValue }}
```
* `coordinator.additionalVolumes` - list, default: `[]`

Expand Down Expand Up @@ -588,11 +588,11 @@ Fast distributed SQL query engine for big data analytics that helps you explore
* `worker.affinity` - object, default: `{}`
* `worker.additionalConfigFiles` - object, default: `{}`

Additional config files placed in the default configuration directory.
Additional config files placed in the default configuration directory. Supports templating the files' contents with `tpl`.
Example:
```yaml
secret.txt: |
secret-value
secret-value={{- .Values.someValue }}
```
* `worker.additionalVolumes` - list, default: `[]`

Expand Down
2 changes: 1 addition & 1 deletion charts/trino/templates/configmap-coordinator.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ data:

{{- range $fileName, $fileContent := .Values.coordinator.additionalConfigFiles }}
{{ $fileName }}: |
{{- $fileContent | nindent 4 }}
{{- tpl $fileContent $ | nindent 4 }}
{{- end }}
{{- if .Values.resourceGroups }}
---
Expand Down
2 changes: 1 addition & 1 deletion charts/trino/templates/configmap-worker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ data:

{{- range $fileName, $fileContent := .Values.worker.additionalConfigFiles }}
{{ $fileName }}: |
{{- $fileContent | nindent 4 }}
{{- tpl $fileContent $ | nindent 4 }}
{{- end }}
---
apiVersion: v1
Expand Down
6 changes: 4 additions & 2 deletions charts/trino/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -545,11 +545,12 @@ coordinator:

additionalConfigFiles: {}
# coordinator.additionalConfigFiles -- Additional config files placed in the default configuration directory.
# Supports templating the files' contents with `tpl`.
# @raw
# Example:
# ```yaml
# secret.txt: |
# secret-value
# secret-value={{- .Values.someValue }}
# ```

additionalVolumes: []
Expand Down Expand Up @@ -708,11 +709,12 @@ worker:

additionalConfigFiles: {}
# worker.additionalConfigFiles -- Additional config files placed in the default configuration directory.
# Supports templating the files' contents with `tpl`.
# @raw
# Example:
# ```yaml
# secret.txt: |
# secret-value
# secret-value={{- .Values.someValue }}
# ```

additionalVolumes: []
Expand Down

0 comments on commit ece02db

Please sign in to comment.