Skip to content

Commit

Permalink
Upgrade bitnami/postgresql subchart to 13.2.24 (apache#36156)
Browse files Browse the repository at this point in the history
  • Loading branch information
dnskr authored Dec 21, 2023
1 parent f84eb2a commit 55f421b
Show file tree
Hide file tree
Showing 8 changed files with 15 additions and 21 deletions.
6 changes: 3 additions & 3 deletions chart/Chart.lock
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
dependencies:
- name: postgresql
repository: https://charts.bitnami.com/bitnami
version: 12.10.0
digest: sha256:731562ef1f62ee687121df2d44ff8131a73aa63841f6cac858c30748ad349d55
generated: "2023-08-25T13:23:48.02337-06:00"
version: 13.2.24
digest: sha256:07f12ed410f106bf13eca69df16a1ef6690c4d4bfcb037943bbff6e71a22201d
generated: "2023-12-09T17:23:53.209725+01:00"
2 changes: 1 addition & 1 deletion chart/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ keywords:
- scheduler
dependencies:
- name: postgresql
version: 12.10.0
version: 13.2.24
repository: https://charts.bitnami.com/bitnami
condition: postgresql.enabled
maintainers:
Expand Down
Binary file removed chart/charts/postgresql-12.10.0.tgz
Binary file not shown.
Binary file added chart/charts/postgresql-13.2.24.tgz
Binary file not shown.
8 changes: 8 additions & 0 deletions chart/newsfragments/34817.significant.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
The helm chart is now using a newer version of ``bitnami/postgresql`` dependency

The version of ``bitnami/postgresql`` subchart upgraded from ``12.10.0`` to ``13.2.24``.
The version of ``PostgreSQL`` binaries upgraded from ``11`` to ``16.1.0``.

The change requires existing ``bitnami/postgresql`` subchart users to perform manual major version upgrade using ``pg_dumpall`` or ``pg_upgrade``.

As a reminder, it is recommended to `set up an external database <https://airflow.apache.org/docs/helm-chart/stable/production-guide.html#database>`_ in production.
14 changes: 1 addition & 13 deletions chart/values.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -5890,7 +5890,7 @@
"auth_type": {
"description": "Method of authenticating users",
"type": "string",
"default": "md5"
"default": "scram-sha-256"
},
"auth_file": {
"description": "The name of the file to load user names and passwords from",
Expand Down Expand Up @@ -6965,18 +6965,6 @@
"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",
Expand Down
4 changes: 1 addition & 3 deletions chart/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1895,7 +1895,7 @@ pgbouncer:
command: ["pgbouncer", "-u", "nobody", "/etc/pgbouncer/pgbouncer.ini"]
# Args to use for PgBouncer(templated).
args: ~
auth_type: md5
auth_type: scram-sha-256
auth_file: /etc/pgbouncer/users.txt

# annotations to be added to the PgBouncer deployment
Expand Down Expand Up @@ -2277,8 +2277,6 @@ cleanup:
# Not recommended for production
postgresql:
enabled: true
image:
tag: "11"
auth:
enablePostgresUser: true
postgresPassword: postgres
Expand Down
2 changes: 1 addition & 1 deletion helm_tests/other/test_pgbouncer.py
Original file line number Diff line number Diff line change
Expand Up @@ -487,7 +487,7 @@ def test_auth_type_file_defaults(self):
}
ini = self._get_pgbouncer_ini(values)

assert "auth_type = md5" in ini
assert "auth_type = scram-sha-256" in ini
assert "auth_file = /etc/pgbouncer/users.txt" in ini

def test_auth_type_file_overrides(self):
Expand Down

0 comments on commit 55f421b

Please sign in to comment.