Skip to content

Commit

Permalink
support multiple configurations as an object not a single string (#151)
Browse files Browse the repository at this point in the history
* support multiple configurations as an object not a single string

* updated readme

* bump version 3.0.0 to let users know that it has breaking changes
  • Loading branch information
hafizmujadidKhalid authored Mar 14, 2023
1 parent 69c2d2a commit 337af89
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 8 deletions.
2 changes: 1 addition & 1 deletion valeriano-manassero/trino/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v1
appVersion: "380"
description: High performance, distributed SQL query engine for big data
name: trino
version: 2.8.1
version: 3.0.0
home: https://trino.io
icon: https://trino.io/assets/images/trino-logo/trino-ko_tiny-alt.svg
sources:
Expand Down
6 changes: 3 additions & 3 deletions valeriano-manassero/trino/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# trino

![Version: 2.8.1](https://img.shields.io/badge/Version-2.8.1-informational?style=flat-square) ![AppVersion: 380](https://img.shields.io/badge/AppVersion-380-informational?style=flat-square)
![Version: 3.0.0](https://img.shields.io/badge/Version-3.0.0-informational?style=flat-square) ![AppVersion: 380](https://img.shields.io/badge/AppVersion-380-informational?style=flat-square)

High performance, distributed SQL query engine for big data

Expand All @@ -27,7 +27,7 @@ High performance, distributed SQL query engine for big data
| clusterDomain | string | `"cluster.local"` | |
| config.coordinator.affinity | object | `{}` | |
| config.coordinator.env | list | `[]` | |
| config.coordinator.extraConfig | string | `""` | |
| config.coordinator.extraConfig | object | `{}` | |
| config.coordinator.initContainers | list | `[]` | |
| config.coordinator.jvm.gcMethod.g1.heapRegionSize | string | `"32M"` | |
| config.coordinator.jvm.gcMethod.type | string | `"UseG1GC"` | |
Expand Down Expand Up @@ -62,7 +62,7 @@ High performance, distributed SQL query engine for big data
| config.worker.autoscaler.stabilizationWindowSeconds | int | `300` | |
| config.worker.autoscaler.targetCPUUtilizationPercentage | int | `50` | |
| config.worker.env | list | `[]` | |
| config.worker.extraConfig | string | `""` | |
| config.worker.extraConfig | object | `{}` | |
| config.worker.initContainers | list | `[]` | |
| config.worker.jvm.gcMethod.g1.heapRegionSize | string | `"32M"` | |
| config.worker.jvm.gcMethod.type | string | `"UseG1GC"` | |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,9 @@ data:
{{- if .Values.config.general.internalCommunicationSharedSecret }}
internal-communication.shared-secret={{ .Values.config.general.internalCommunicationSharedSecret }}
{{- end }}
{{ .Values.config.coordinator.extraConfig | indent 4 }}
{{- range $configValue := .Values.config.coordinator.extraConfig }}
{{ $configValue }}
{{- end }}

log.properties: |
io.trino={{ .Values.config.general.log.trino.level }}
Expand Down
4 changes: 3 additions & 1 deletion valeriano-manassero/trino/templates/configmap-worker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,9 @@ data:
{{- if .Values.config.general.internalCommunicationSharedSecret }}
internal-communication.shared-secret={{ .Values.config.general.internalCommunicationSharedSecret }}
{{- end }}
{{ .Values.config.worker.extraConfig | indent 4 }}
{{- range $configValue := .Values.config.coordinator.extraConfig }}
{{ $configValue }}
{{- end }}

log.properties: |
io.trino={{ .Values.config.general.log.trino.level }}
Expand Down
8 changes: 6 additions & 2 deletions valeriano-manassero/trino/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,9 @@ config:
g1:
heapRegionSize: "32M"
jvmExtraConfig: ""
extraConfig: ""
extraConfig: {}
# - "retry-policy=TASK"
# - "exchange.compression-enabled=true"

worker:
# -- Replica count when autoscaler is disabled. If autoscaler is enabled, it sets minimum number of replicas.
Expand Down Expand Up @@ -109,7 +111,9 @@ config:
g1:
heapRegionSize: "32M"
jvmExtraConfig: ""
extraConfig: ""
extraConfig: {}
# - "retry-policy=TASK"
# - "exchange.compression-enabled=true"
autoscaler:
enabled: false
maxReplicas: 5
Expand Down

0 comments on commit 337af89

Please sign in to comment.