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
This is fixing issues found by using helm chart in tobs. Mainly
helm upgrade
is broken due to the following error:The fix is to: 1) remove
pre-upgrade
hook so secret is not removed during upgrade 2) improve lookup function to reuse helper function