charts icon indicating copy to clipboard operation
charts copied to clipboard

Update configmap-coordinator.yaml remove indentation

Open nabaruns opened this issue 2 years ago • 9 comments

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

nabaruns avatar Jul 05 '23 07:07 nabaruns

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

cla-bot[bot] avatar Jul 05 '23 07:07 cla-bot[bot]

Can you update the PR description to explain why this change is necessary, instead of describing the change itself?

nineinchnick avatar Jul 05 '23 07:07 nineinchnick

Can you update the PR description to explain why this change is necessary, instead of describing the change itself?

Please check now.

nabaruns avatar Jul 05 '23 08:07 nabaruns

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

nineinchnick avatar Jul 05 '23 08:07 nineinchnick

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

nabaruns avatar Jul 05 '23 08:07 nabaruns

And with your change that removes the indentation?

nineinchnick avatar Jul 06 '23 11:07 nineinchnick

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

cla-bot[bot] avatar Jul 07 '23 11:07 cla-bot[bot]

And with your change that removes the indentation?

It works fine now. Refactored changes in both files for coordinator and worker. Kindly check.

nabaruns avatar Jul 07 '23 11:07 nabaruns

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

luismacosta avatar Dec 05 '23 23:12 luismacosta

Fixed in 10e2060e0b6d75a4cad412a464f5da18ad30b0a7

nineinchnick avatar May 22 '24 07:05 nineinchnick