Bump postgres chart to latest release #391
Reference in New Issue
Block a user
No description provided.
Delete Branch "refs/pull/391/head"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
See discussion in #387
Upgrade notes to Chart v11.x and Postgres 14.x: https://docs.bitnami.com/kubernetes/infrastructure/postgresql/administration/upgrade/
The current version in Gitea is using
11.11.0-debian-10-r62
from 2021-04.Bumping the chart to the latest (v12.x) would use the image
15.2.0-debian-11-r14
which would be a jump from postgres 11 to postgres 15. There are no specific notes for the v12.x chart release, hence we might be able to just go to 12.x directly.There have been some param renamings which I've reflected in the README.
⚠️ BREAKING
Users have to migrate their Postgres DB by e.g. restoring a previously created database dump into a clean installation.
Chart.lock
must be updated, too. And we should mention that there is a proper way of updating PGSQL databases.@ -1178,4 +823,3 @@
| `test.image.name` | Image name for the wget container used in the test-connection Pod. | `busybox` |
| `test.image.tag` | Image tag for the wget container used in the test-connection Pod. | `latest` |
| `extraDeploy` | Array of extra objects to deploy with the release | `[]` |
Two occurrences.
@ -129,4 +94,2 @@
{{- define "postgresql.dns" -}}
{{- if (index .Values "postgresql").enabled -}}
{{- printf "%s-postgresql.%s.svc.%s:%g" .Release.Name .Release.Namespace .Values.clusterDomain .Values.postgresql.global.postgresql.service.ports.postgresql -}}
I know it's a PR for bumping the postgres version and nothing more. Do you fancy adding some simple unittests that ensure the mapping in our
values.yaml
works with the one the dependent chart expects? It should help with future updates, detecting changes.We could/should but then probably for all chart deps? This might take a bit of work. Let's track it in #409. I think this should not block this PR for now.
@ -170,3 +140,2 @@
className:
annotations:
{}
annotations: {}
We should keep the empty array/object consistent with the other definitions. It's easier to read. (related to several changes)
Yeah sorry for this, hitting the auto-format one time and then continueing brings trouble 😆️
Adding "breaking" label as it is a major bump for the database chart.
Please see my comments below.
@ -13,3 +10,1 @@
version: 19.6.4
digest: sha256:462d513ac8ef7abfe26030fd2ea93eb79df167a861ebe09d6c58c7dcd5601e85
generated: "2024-11-30T00:41:29.178889496Z"
version: 12.2.6
Apologies for not testing it earlier. In the meantime the latest version is 12.2.6. I think we can update to that version - I've already used that newer version during my tests. 😉
@ -814,4 +601,0 @@
request_headers = {
Accept = "application/json"
}
I think this removal is a mistake. It must be kept, since Chart version 7.0.0 got released and had the breaking change of bumping Gitea to 1.18.1 and gpg key setup. See https://gitea.com/gitea/helm-chart/src/tag/v7.0.0#to-7-0-0
@ -772,136 +598,29 @@ gitea:
podAnnotations: {}
I just realized: Our description for
postgresqlPassword
is wrong. It is not the admin password. Based on the previously used Chart version 10.3.17 this would've beenpostgresqlPostgresPassword
. What we configure instead is the actual additional user that is not the super-global admin of that instance. IMO, that's the desired state.On the other hand: With Chart version 12.2.1 the key
postgresql.global.postgresql.auth.postgresPassword
is the password of that super-global admin and we have to usepostgresql.global.postgresql.auth.password
instead.@ -814,4 +601,0 @@
request_headers = {
Accept = "application/json"
}
The confusion came up as someone assumed we need to always issue a major release for every gitea minor update, even if there are not breaking changes for the chart.
To clear the confusion, it might help to remove the statement of "this update bumps gitea to 1.18.1" as this somehow covers the underlying breaking change of the GPG key feature.
In other README changelog notes we never mentioned the Gitea minor release, hence I guess we should keep it at chart-related breaking changes to avoid confusion?
I've went ahead and did so, let me know what you thinK!
@ -772,136 +598,29 @@ gitea:
podAnnotations: {}
Good catch!
LGTM. I've fixed a similar port templating issue as I mentioned in https://gitea.com/gitea/helm-chart/pulls/412#issuecomment-733779 for MySQL.
@ -814,4 +601,0 @@
request_headers = {
Accept = "application/json"
}
Works for me how you proposed. 👍
@ -814,4 +601,0 @@
request_headers = {
Accept = "application/json"
}
This comment is related to https://gitea.com/gitea/helm-chart/pulls/391#issuecomment-734001.
Great, merging and moving onwards!