Skip to content

Commit

Permalink
[keycloak] update postgres subchart to 10.3.13 (#410)
Browse files Browse the repository at this point in the history
Fixes #336

Upgrade Postgres subchart

Signed-off-by: Jorik Jonker <[email protected]>

Co-authored-by: mircohaug <[email protected]>
  • Loading branch information
jonkerj and mircohacker authored May 3, 2021
1 parent fe3f4f4 commit 3bb1b8a
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 6 deletions.
2 changes: 1 addition & 1 deletion charts/keycloak/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: v1
name: keycloak
version: 10.3.1
version: 11.0.0
appVersion: 12.0.4
description: Open Source Identity and Access Management For Modern Applications and Services
keywords:
Expand Down
10 changes: 10 additions & 0 deletions charts/keycloak/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -646,6 +646,16 @@ The headless service that governs the StatefulSet is used for DNS discovery via

## Upgrading

### From chart < 11.0.0

When you are using the postgresql subchart (which is not recommended for production situations), you will need to migrate the statefulset governing the postgresql pod.
The upgrade will cause some immutable fields of the statefulset to be modified, which cannot be done in place.
You will have to manually remove the statefulset before doing the Helm upgrade.
The following procedure takes care of this:

1. Remove the old statefulset (associated PVC will remain in place): `kubectl delete statefulset -n <your ns> <name of your psql statefulset>`
1. Helm Upgrade: `helm upgrade -n <your ns> ... <your release>`

### From chart < 10.0.0

* Keycloak is updated to 12.0.4
Expand Down
6 changes: 3 additions & 3 deletions charts/keycloak/requirements.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: 9.1.1
digest: sha256:33ee9e6caa9e519633071fd71aedd9de7906b9a9d7fb629eb814d9f72bb8d68e
generated: "2020-07-24T07:40:55.78753+02:00"
version: 10.3.13
digest: sha256:0b35e861ab4e49a0d63eb83bf74a753a4b12d576d2d5f941701a659b4c93e1e4
generated: "2021-03-18T11:41:44.099229802+01:00"
2 changes: 1 addition & 1 deletion charts/keycloak/requirements.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
dependencies:
- name: postgresql
version: 9.1.1
version: 10.3.13
repository: https://charts.bitnami.com/bitnami
condition: postgresql.enabled
2 changes: 1 addition & 1 deletion charts/keycloak/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ Create a default fully qualified app name for the postgres requirement.
*/}}
{{- define "keycloak.postgresql.fullname" -}}
{{- $postgresContext := dict "Values" .Values.postgresql "Release" .Release "Chart" (dict "Name" "postgresql") -}}
{{ include "postgresql.fullname" $postgresContext }}
{{ include "postgresql.primary.fullname" $postgresContext }}
{{- end }}

{{/*
Expand Down

0 comments on commit 3bb1b8a

Please sign in to comment.