Skip to content

docs: clarify server.workerExtraConfig / coordinatorExtraConfig#421

Open
ttagu99 wants to merge 1 commit into
trinodb:mainfrom
ttagu99:docs/clarify-coordinator-worker-extra-config
Open

docs: clarify server.workerExtraConfig / coordinatorExtraConfig#421
ttagu99 wants to merge 1 commit into
trinodb:mainfrom
ttagu99:docs/clarify-coordinator-worker-extra-config

Conversation

@ttagu99

@ttagu99 ttagu99 commented Apr 24, 2026

Copy link
Copy Markdown

What

Add helm-docs descriptions for server.workerExtraConfig and server.coordinatorExtraConfig. They are currently listed in the README with only the bare property name and no guidance, which left me chasing a 30-minute coordinator/worker mismatch the first time I tried to enable JWT authentication.

Why

additionalConfigProperties is merged into both config.properties files (coordinator + worker). That is fine for cluster-wide properties, but role-specific properties — the authentication flags being the most common example — cause whichever pod does not recognise the property to crash with:

Configuration property 'http-server.authentication.type' was not used

The chart already provides the correct escape hatch (server.coordinatorExtraConfig / server.workerExtraConfig) and templates/configmap-coordinator.yaml / templates/configmap-worker.yaml already wire them through. The only thing missing is the documentation pointing users to them before they try additionalConfigProperties and hit the crash.

What changed

  • charts/trino/values.yaml — add # server.workerExtraConfig -- and # server.coordinatorExtraConfig -- helm-docs comments with a short explanation plus a copy-pasteable example. Added a JWT authentication example on coordinatorExtraConfig since that is the typical production case.
  • charts/trino/README.md — manually regenerate just those two entries to keep the diff minimal. (My local helm-docs v1.14.2 --chart-search-root=charts --document-dependency-values regenerates the rest of the file with whitespace-only differences, so I reverted those lines.)

Not changed

  • No template/runtime changes. The chart already supports this; the PR is documentation only.

Test plan

  • helm-docs v1.14.2 --chart-search-root=charts runs clean.
  • Rendered README snippet below matches the manual edit.
  • The JWT example was used in a downstream cluster (DataX #510) to turn on JWT auth end-to-end without additionalConfigProperties worker crashes.

`server.workerExtraConfig` and `server.coordinatorExtraConfig` currently
show up in README as bare one-liners with no description. In practice
these are the only supported way to set role-specific
`config.properties` entries — `additionalConfigProperties` merges into
*both* coordinator and worker, which makes Trino fail with
`Configuration property 'X' was not used` on whichever role does not
recognise the property (common with `http-server.authentication.type`
and related JWT/OAuth2 settings). Add helm-docs descriptions and a JWT
example to save users a crash-then-diagnose round trip.

No template/runtime changes.
@cla-bot

cla-bot Bot commented Apr 24, 2026

Copy link
Copy Markdown

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 cla@trino.io. 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

@nineinchnick

Copy link
Copy Markdown
Member

@cla-bot check

@cla-bot

cla-bot Bot commented Apr 28, 2026

Copy link
Copy Markdown

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 cla@trino.io. 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

cla-bot Bot commented Apr 28, 2026

Copy link
Copy Markdown

The cla-bot has been summoned, and re-checked this pull request!

@nineinchnick nineinchnick left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you. This is a valuable change.

Comment thread charts/trino/values.yaml
Comment on lines +92 to +94
# `workerExtraConfig` or `coordinatorExtraConfig` instead — otherwise Trino's
# strict `Configuration property 'X' was not used` check crashes the pod that
# does not recognise the property.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I understand you were frustrated and want to make these docs extra clear, but this last part repeats what's stated in the first sentence, so I'd remove it.

Suggested change
# `workerExtraConfig` or `coordinatorExtraConfig` instead — otherwise Trino's
# strict `Configuration property 'X' was not used` check crashes the pod that
# does not recognise the property.
# `workerExtraConfig` or `coordinatorExtraConfig` instead.

Comment thread charts/trino/values.yaml
Comment on lines +106 to +108
# PASSWORD) that workers do not accept — adding them via
# `additionalConfigProperties` crashes workers with
# `Configuration property 'http-server.authentication.type' was not used`.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You might clarify this in the docs for additionalConfigProperties that the properties added there will be used in all node types and should not include node-specific settings. additionalConfigProperties is currently not documented at all.

Suggested change
# PASSWORD) that workers do not accept — adding them via
# `additionalConfigProperties` crashes workers with
# `Configuration property 'http-server.authentication.type' was not used`.
# PASSWORD) that workers do not accept.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants