influxdata / helm-charts

Official Helm Chart Repository for InfluxData Applications
MIT License
233 stars 330 forks source link

Yaml integers converted to floats, not recognized as Go integer. #612

Open bentatham opened 1 year ago

bentatham commented 1 year ago

Using influxdata/influxdb 4.12.5

If you pass large integer values eg:

config:
  data:
    max-values-per-tag: 10000000

yaml converts that to 1e7 in the toml file, which then influx chokes on parsing because it expects an integer.

If you put the helm value in quotes to keep it, the quotes get preserved into the toml as well as "10000000", and influx can still not parse that value.

bentatham commented 1 year ago

Workaround for now is to use env vars instead, which does remove quotes appropriately.

env:
  - name: INFLUXDB_DATA_MAX_VALUES_PER_TAG
    value: "10000000"