timescale / helm-charts

Configuration and Documentation to run TimescaleDB in your Kubernetes cluster
Apache License 2.0
264 stars 223 forks source link

timescaledb-single: fix upgrades of the helm chart when using generated secrets #379

Closed paulfantom closed 2 years ago

paulfantom commented 2 years ago

This is fixing issues found by using helm chart in tobs. Mainly helm upgrade is broken due to the following error:

Error: UPGRADE FAILED: YAML parse error on tobs/charts/timescaledb-single/templates/secret-pgbackrest.yaml: error converting YAML to JSON: yaml: line 16: mapping values are not allowed in this context

The fix is to: 1) remove pre-upgrade hook so secret is not removed during upgrade 2) improve lookup function to reuse helper function