charts
charts copied to clipboard
Update configmap-coordinator.yaml remove indentation
With current chart, if we add
server:
coordinatorExtraConfig: "query.client.timeout=5m"
then
config.properties in coordinator configMap turns out with config extra indented:
coordinator=true
node-scheduler.include-coordinator=false
http-server.http.port=8080
query.max-memory=2GB
query.max-memory-per-node=1GB
memory.heap-headroom-per-node=1GB
discovery-server.enabled=true
discovery.uri=http://localhost:8080
query.client.timeout=5m
Thank you for your pull request and welcome to the Trino community. We require contributors to sign our Contributor License Agreement, and we don't seem to have you on file. Continue to work with us on the review and improvements in this PR, and submit the signed CLA to [email protected]. Photos, scans, or digitally-signed PDF files are all suitable. Processing may take a few days. The CLA needs to be on file before we merge your changes. For more information, see https://github.com/trinodb/cla
Can you update the PR description to explain why this change is necessary, instead of describing the change itself?
Can you update the PR description to explain why this change is necessary, instead of describing the change itself?
Please check now.
Is the correct indentation level 0 or 2? In the example you have, it looks like there are 2 extra spaces now. Can you test this with two additional properties, like:
server:
coordinatorExtraConfig: |
query.client.timeout=5m
query.execution-policy=phased
server: coordinatorExtraConfig: | query.client.timeout=5m query.execution-policy=phased
Ok. I am using subchart with dependency. So when I have values.yaml as
trino:
server:
coordinatorExtraConfig: |
query.client.timeout=5m
query.execution-policy=phased
Then config.properties in coordinator configMap becomes:
query.client.timeout=5m
query.execution-policy=phased
And with your change that removes the indentation?
Thank you for your pull request and welcome to the Trino community. We require contributors to sign our Contributor License Agreement, and we don't seem to have you on file. Continue to work with us on the review and improvements in this PR, and submit the signed CLA to [email protected]. Photos, scans, or digitally-signed PDF files are all suitable. Processing may take a few days. The CLA needs to be on file before we merge your changes. For more information, see https://github.com/trinodb/cla
And with your change that removes the indentation?
It works fine now. Refactored changes in both files for coordinator and worker. Kindly check.
Hello @nabaruns
I was also facing this issue My solution was:
- replace https://github.com/trinodb/charts/blob/main/charts/trino/templates/configmap-coordinator.yaml#L70 -> add
{{- range $configValue := .Values.coordinator.additionalConfigProperties }}
{{ $configValue }}
{{- end }}
worker
- replace https://github.com/trinodb/charts/blob/main/charts/trino/templates/configmap-worker.yaml#L58 -> add
{{- range $configValue := .Values.coordinator.additionalConfigProperties }}
{{ $configValue }}
{{- end }}
values.yaml
coordinator:
additionalConfigProperties:
- internal-communication.shared-secret=
- password-authenticator.config-files=
- http-server.authentication.allow-insecure-over-http=true
- http-server.process-forwarded=true
Fixed in 10e2060e0b6d75a4cad412a464f5da18ad30b0a7