charts icon indicating copy to clipboard operation
charts copied to clipboard

Trino. Ability to override catalog individual properties

Open arturmkr opened this issue 9 months ago • 3 comments

Desctiption:

Currently, in the Trino Helm chart, certain configurations are provided as multiline strings using the YAML block syntax (|-). For example:

catalogs:
  glue: |-
    connector.name=hive
    hive.metastore=glue
    hive.metastore.glue.region=eu-central-1
    fs.native-s3.enabled=true
    s3.region=eu-central-1
    s3.path-style-access=true

While this structure is useful for grouping related settings, it has a significant limitation: it is not possible to override individual properties within the block from another values.yaml file. For example, I cannot override s3.path-style-access alone in MyEnv.yaml.

Use Case:

As a user of Trino Helm charts, I want to customize individual properties within grouped configurations without redefining the entire block. This would allow me to: • Avoid duplicating unchanged configuration in multiple environments. • Reduce errors and maintenance overhead when managing environment-specific values.

Proposed Solution:

Refactor the configuration blocks into individual key-value pairs in the Helm chart, like so:

catalogs:
  glue:
    connector.name=hive
    hive.metastore=glue
    hive.metastore.glue.region=eu-central-1
    fs.native-s3.enabled=true
    s3.region=eu-central-1
    s3.path-style-access=true

This way, I can override specific properties in MyEnv.yaml without redefining the entire block:

catalogs:
  glue:
    s3.path-style-access: false

arturmkr avatar Jan 16 '25 09:01 arturmkr