Skip to content

Commit

Permalink
Enable Network Policies and upgrade to Keycloak to v23.0.7
Browse files Browse the repository at this point in the history
  • Loading branch information
Gabriel Mainberger committed Sep 30, 2024
1 parent 216f3ae commit 098ea8c
Show file tree
Hide file tree
Showing 11 changed files with 46 additions and 11 deletions.
4 changes: 2 additions & 2 deletions class/defaults.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ parameters:
keycloak:
registry: quay.io
repository: keycloak/keycloak
tag: 22.0.5
tag: 23.0.7
busybox:
registry: docker.io
repository: busybox
Expand Down Expand Up @@ -261,7 +261,7 @@ parameters:
host: ${keycloak:fqdn}
networkPolicy:
# Note: Do not enable when using ingress controller with hostNetwork=true.
enabled: false
enabled: true
# Note: On Syn-managed OpenShift4 clusters there should be already NetworkPolicies that allow traffic from Ingress controller out-of-the-box.
extraFrom:
- podSelector:
Expand Down
34 changes: 34 additions & 0 deletions docs/modules/ROOT/pages/how-tos/upgrade-15.x-to-16.x.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
= Upgrade from v15 to v16

This guide describes the steps to perform an upgrade of the component from version v15 to v16.

== Breaking Changes

* Network Policies are now enabled by default

== Changes

* The component requires Kubernetes v1.25 or newer.
* Keycloak version is v23.0.7 by default.

== Parameter changes

* None

== Step-by-step guide

When upgrading the component, the following actions are required if the built-in database is used:

. Do a backup of the built-in database.
+
[source,bash]
----
instance=keycloak
namespace=syn-${instance}
kubectl -n "${namespace}" exec -ti keycloak-postgresql-0 -c postgresql -- sh -c 'PGDATABASE="$POSTGRES_DATABASE" PGUSER="$POSTGRES_USER" PGPASSWORD="$POSTGRES_PASSWORD" pg_dump --clean' > keycloak-postgresql-$(date +%F-%H-%M-%S).sql
----

. Apply the parameter changes.

. Compile and push the cluster catalog.
1 change: 1 addition & 0 deletions docs/modules/ROOT/partials/nav.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
* xref:how-tos/upgrade-12.x-to-13.x.adoc[Upgrade 12.x to 13.x]
* xref:how-tos/upgrade-13.x-to-14.x.adoc[Upgrade 13.x to 14.x]
* xref:how-tos/upgrade-14.x-to-15.x.adoc[Upgrade 14.x to 15.x]
* xref:how-tos/upgrade-14.x-to-15.x.adoc[Upgrade 15.x to 16.x]
* xref:how-tos/openshift-4.adoc[Install on OpenShift 4]
* xref:how-tos/pin-versions.adoc[Pin versions]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ metadata:
app.kubernetes.io/instance: builtin
app.kubernetes.io/managed-by: commodore
app.kubernetes.io/name: keycloak
app.kubernetes.io/version: 22.0.5
app.kubernetes.io/version: 23.0.7
helm.sh/chart: keycloakx-2.3.0
name: keycloakx
namespace: syn-builtin
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ metadata:
app.kubernetes.io/instance: keycloakx
app.kubernetes.io/managed-by: Helm
app.kubernetes.io/name: keycloakx
app.kubernetes.io/version: 22.0.5
app.kubernetes.io/version: 23.0.7
helm.sh/chart: keycloakx-2.3.0
name: keycloakx
namespace: syn-builtin
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ metadata:
app.kubernetes.io/instance: builtin
app.kubernetes.io/managed-by: commodore
app.kubernetes.io/name: keycloak
app.kubernetes.io/version: 22.0.5
app.kubernetes.io/version: 23.0.7
helm.sh/chart: keycloakx-2.3.0
name: keycloakx
namespace: syn-builtin
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ metadata:
app.kubernetes.io/instance: keycloakx
app.kubernetes.io/managed-by: Helm
app.kubernetes.io/name: keycloakx
app.kubernetes.io/version: 22.0.5
app.kubernetes.io/version: 23.0.7
helm.sh/chart: keycloakx-2.3.0
name: keycloakx-headless
namespace: syn-builtin
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ metadata:
app.kubernetes.io/instance: builtin
app.kubernetes.io/managed-by: commodore
app.kubernetes.io/name: keycloak
app.kubernetes.io/version: 22.0.5
app.kubernetes.io/version: 23.0.7
helm.sh/chart: keycloakx-2.3.0
name: keycloakx-http
namespace: syn-builtin
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ metadata:
app.kubernetes.io/instance: builtin
app.kubernetes.io/managed-by: commodore
app.kubernetes.io/name: keycloak
app.kubernetes.io/version: 22.0.5
app.kubernetes.io/version: 23.0.7
helm.sh/chart: keycloakx-2.3.0
name: keycloakx
namespace: syn-builtin
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ metadata:
app.kubernetes.io/instance: builtin
app.kubernetes.io/managed-by: commodore
app.kubernetes.io/name: keycloak
app.kubernetes.io/version: 22.0.5
app.kubernetes.io/version: 23.0.7
helm.sh/chart: keycloakx-2.3.0
name: keycloakx-keycloakx
namespace: syn-builtin
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ metadata:
app.kubernetes.io/instance: builtin
app.kubernetes.io/managed-by: commodore
app.kubernetes.io/name: keycloak
app.kubernetes.io/version: 22.0.5
app.kubernetes.io/version: 23.0.7
helm.sh/chart: keycloakx-2.3.0
name: keycloakx
namespace: syn-builtin
Expand Down Expand Up @@ -97,7 +97,7 @@ spec:
name: keycloak-admin-user
- secretRef:
name: keycloak-postgresql
image: quay.io/keycloak/keycloak:22.0.5
image: quay.io/keycloak/keycloak:23.0.7
imagePullPolicy: IfNotPresent
livenessProbe:
httpGet:
Expand Down

0 comments on commit 098ea8c

Please sign in to comment.