Skip to content

Commit

Permalink
Merge pull request #21 from projectsyn/upgrade-3.0
Browse files Browse the repository at this point in the history
Add upgrade guide for 3.x
  • Loading branch information
ccremer authored Jun 11, 2021
2 parents 989d1f1 + f4ca77f commit 0266775
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 0 deletions.
34 changes: 34 additions & 0 deletions docs/modules/ROOT/pages/how-tos/upgrade-2.x-to-3.x.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
= Upgrade from 2.x to 3.x

This guide describes the steps to perform an upgrade of the component from version 2.x to 3.x.

== Step-by-step guide

Version 2.1.0 introduced and enabled network policies by default.
Version 3.0 disables the network policy **for Keycloak** due to a regression in certain environments.

NOTE: The network policy for the built-in database is unaffected.

=== When using default network policy settings

Version 3.0 sets the parameter `helm_values.networkPolicy.enabled` back to `false`.
The reason behind it is explained in xref:explanations/default-features.adoc[Default features].

If the circumstances explained there don't apply to you and you still explicitly require this policy you can configure the following parameters to re-enable it:

[source,yaml]
----
parameters:
keycloak:
ingress:
controllerNamespace: ingress-nginx # default, but set to where your ingress controller is
helm_values:
networkPolicy:
enabled: true
----

NOTE: If you don't use nginx as ingress controller, have a look at `helm_values.networkPolicy.extraFrom` parameter and customize as needed.

=== When network policy already disabled

If you've explicitly disabled the network policy for Keycloak since v2.1.0, you can remove the parameter `helm_values.networkPolicy.enabled` from the hierarchy (but you don't need to).
1 change: 1 addition & 0 deletions docs/modules/ROOT/partials/nav.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
* xref:how-tos/db-tls.adoc[Encrypt database connection]
* xref:how-tos/change-passwords.adoc[Change passwords]
* xref:how-tos/upgrade-1.x-to-2.x.adoc[Upgrade 1.x to 2.x]
* xref:how-tos/upgrade-2.x-to-3.x.adoc[Upgrade 2.x to 3.x]
* xref:how-tos/pin-versions.adoc[Pin versions]
.Explanations
Expand Down

0 comments on commit 0266775

Please sign in to comment.