pmint93 / helm-charts

My helm charts
https://pmint93.github.io/helm-charts/
Apache License 2.0
73 stars 72 forks source link

[pgbouncer] tamplate render all `extraSettings` on one line #100

Closed OlivierCharuel closed 7 months ago

OlivierCharuel commented 7 months ago

pgbouncer-other.ini is malformed when additional settings are provided

how to reproduce:

file custom-values.yaml

extraSettings:
  max_prepared_statements: '100'

Generated configmap :

helm template . -f values.yaml -f custom-values.yaml -s templates/configmap.yaml | tail -4  
    ;; Read additional config from other file
    %include /etc/pgbouncer/pgbouncer-other.ini
  pgbouncer-other.ini: |-
    ignore_startup_parameters = extra_float_digitsmax_prepared_statements = 100

Expected output :

helm template . -f values.yaml -f custom-values.yaml -s templates/configmap.yaml | tail -5  
    ;; Read additional config from other file
    %include /etc/pgbouncer/pgbouncer-other.ini
  pgbouncer-other.ini: |-
    ignore_startup_parameters = extra_float_digits
    max_prepared_statements = 100