diff --git a/chart/newsfragments/27353.significant.rst b/chart/newsfragments/27353.significant.rst new file mode 100644 index 0000000000000..1a79768787c06 --- /dev/null +++ b/chart/newsfragments/27353.significant.rst @@ -0,0 +1,21 @@ +The helm chart is now using a newer version of bitnami/postgresql (from 10.5.3 to 12.1.9) + +The version of postgresql installed is still version 11. + +This version of the chart uses different variable names for setting usernames and passwords in the postgres database. + +- ``postgresql.auth.enablePostgresUser`` is used to determine if the "postgres" admin account will be created. +- ``postgresql.auth.postgresPassword`` sets the password for the "postgres" user. +- ``postgresql.auth.username`` and ``postrgesql.auth.password`` are used to set credentials for a non-admin account if desired. +- ``postgresql.postgresqlUsername`` and ``postgresql.postresqlPassword``, which were used in the previous version of the chart, are no longer used. + +Users will need to change these variable names in their values files if they are using the helm chart. + +If you are upgrading an existing helm release with the built-in postgres database, you will either need to delete your release and reinstall fresh, or manually delete these 2 objects: + +``` +kubectl delete secret {RELEASE_NAME}-postgresql +kubectl delete statefulset {RELEASE_NAME}-postgresql +``` + +As a reminder, it is recommended to `set up an external database `_ in production. diff --git a/chart/values.schema.json b/chart/values.schema.json index 68ebf5d70fd36..8bd29c0f6b7f9 100644 --- a/chart/values.schema.json +++ b/chart/values.schema.json @@ -5200,6 +5200,18 @@ "type": "boolean", "default": true }, + "images": { + "description": "PostgreSQL image values.", + "type": "object", + "additionalProperties": true, + "properties": { + "tag": { + "description": "The PostgreSQL image tag.", + "type": "string", + "default": "11" + } + } + }, "auth": { "description": "PostgreSQL authentication values.", "type": "object", diff --git a/chart/values.yaml b/chart/values.yaml index d2aa91cb8a454..339bcb844d902 100644 --- a/chart/values.yaml +++ b/chart/values.yaml @@ -1702,6 +1702,8 @@ cleanup: # Not recommended for production postgresql: enabled: true + image: + tag: "11" auth: enablePostgresUser: true postgresPassword: postgres diff --git a/newsfragments/27353.significant.rst b/newsfragments/27353.significant.rst deleted file mode 100644 index 02bb8a3de9c76..0000000000000 --- a/newsfragments/27353.significant.rst +++ /dev/null @@ -1,8 +0,0 @@ -The helm chart is now using a newer version of bitnami/postgresql (from 10.5.3 to 12.1.9) - -This version of the chart uses different variable names for setting usernames and passwords in the postgres database. -```postgresql.auth.enablePostgresUser``` is used to determine if the "postgres" admin account will be created. -```postgresql.auth.postgresPassword``` sets the password for the "postgres" user. -```postgresql.auth.username``` and ```postrgesql.auth.password``` are used to set credentials for a non-admin account if desired. -```postgresql.postgresqlUsername``` and ```postgresql.postresqlPassword```, which were used in the previous version of the chart, are no longer used. -Users will need to change these variable names in their values files if they are using the helm chart.