Update PostgreSQL chart dependency to 3.x
This updates the PostgreSQL chart dependency to 3.x, which uses non-root containers, statefulsets, master-slave configuration, database user with minimal privileges, inject custom configuration, startup scripts, daily update of the container to address CVEs, etc.
The main changes are:
- Create a ConfigMap with a sql command to enable the
pg_trm
extension (I am not sure if that's the right location, but it is necessary for the migration job to work). - Adapt changing keys (configmap key, value names). Adapt the README accordingly
This change in PostgreSQL is major, so I increased the major version of the chart. For safety reasons, the recommended upgrade approach would be using the export/import feature.