nats-io / k8s

NATS on Kubernetes with Helm Charts
Apache License 2.0
455 stars 305 forks source link

Support `mappings` in nats config #834

Closed yz89122 closed 11 months ago

yz89122 commented 11 months ago

What motivated this proposal?

In NATS, there's a per stream throughput limitation. Currently, I do partitioning to achieve higher throughput, which distributes messages to multiple streams.

To configure this in current Helm Chart, I have to edit the ConfigMap after Helm template generation.

What is the proposed change?

Support subject mapping in values.yaml.

Who benefits from this change?

Anyone who needs to configure subject mapping.

What alternatives have you evaluated?

caleblloyd commented 11 months ago

You can, use config.merge.mappings, the schema is exactly as it appears in the NATS documentation

caleblloyd commented 11 months ago

Any config supported by NATS configuration can be put into config.merge

yz89122 commented 11 months ago

Thanks for helping, I didn't realize there's a merge for .config.