Skip to content

Commit

Permalink
feat: upgrade to keycloak v23.0.7 (#63)
Browse files Browse the repository at this point in the history
- upgrade to keycloak v23.0.7
- feat(upgrade): set postgres version to 15 (latest available Bitnami image version: https://hub.docker.com/r/bitnami/postgresql/tags?page=1&name=15-debian-11)
- change version in realm config
- build and add updated init containers
- docs: update readme on root level
- docs: update readme templates on chart level with upgrade info
- docs: remove Catena-X from chart description
- chore(helm test): update version to upgrade from and k8s version
  • Loading branch information
evegufy authored Mar 13, 2024
1 parent f210d86 commit 9c62c93
Show file tree
Hide file tree
Showing 72 changed files with 109 additions and 87 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/centralidp-chart-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,13 @@ on:
node_image:
description: 'kindest/node image for k8s kind cluster'
# k8s version to support
default: 'kindest/node:v1.26.6'
default: 'kindest/node:v1.27.3'
required: false
type: string
upgrade_from:
description: 'portal chart version to upgrade from'
# centralidp version from 23.09 release
default: '1.2.0'
# centralidp version from 24.03 release
default: '2.1.0'
required: false
type: string

Expand All @@ -55,7 +55,7 @@ jobs:
uses: container-tools/kind-action@v2
with:
version: v0.19.0
node_image: ${{ github.event.inputs.node_image || 'kindest/node:v1.26.6' }}
node_image: ${{ github.event.inputs.node_image || 'kindest/node:v1.27.3' }}

- name: Set up Helm
uses: azure/setup-helm@v3
Expand Down Expand Up @@ -93,7 +93,7 @@ jobs:
run: |
helm repo add bitnami-full-index https://raw.githubusercontent.com/bitnami/charts/archive-full-index/bitnami
helm repo add tractusx-dev https://eclipse-tractusx.github.io/charts/dev
helm install centralidp tractusx-dev/centralidp --version ${{ github.event.inputs.upgrade_from || '1.2.0' }}
helm install centralidp tractusx-dev/centralidp --version ${{ github.event.inputs.upgrade_from || '2.1.0' }}
helm dependency update charts/centralidp
helm upgrade centralidp charts/centralidp
if: github.event_name != 'pull_request' || steps.list-changed.outputs.changed == 'true'
10 changes: 5 additions & 5 deletions .github/workflows/sharedidp-chart-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,13 @@ on:
node_image:
description: 'kindest/node image for k8s kind cluster'
# k8s version to support
default: 'kindest/node:v1.26.6'
default: 'kindest/node:v1.27.3'
required: false
type: string
upgrade_from:
description: 'portal chart version to upgrade from'
# sharedidp version from 23.09 release
default: '1.2.0'
# sharedidp version from 24.03 release
default: '2.1.0'
required: false
type: string

Expand All @@ -55,7 +55,7 @@ jobs:
uses: container-tools/kind-action@v2
with:
version: v0.19.0
node_image: ${{ github.event.inputs.node_image || 'kindest/node:v1.26.6' }}
node_image: ${{ github.event.inputs.node_image || 'kindest/node:v1.27.3' }}

- name: Set up Helm
uses: azure/setup-helm@v3
Expand Down Expand Up @@ -93,7 +93,7 @@ jobs:
run: |
helm repo add bitnami-full-index https://raw.githubusercontent.com/bitnami/charts/archive-full-index/bitnami
helm repo add tractusx-dev https://eclipse-tractusx.github.io/charts/dev
helm install sharedidp tractusx-dev/sharedidp --version ${{ github.event.inputs.upgrade_from || '1.2.0' }}
helm install sharedidp tractusx-dev/sharedidp --version ${{ github.event.inputs.upgrade_from || '2.1.0' }}
helm dependency update charts/sharedidp
helm upgrade sharedidp charts/sharedidp
if: github.event_name != 'pull_request' || steps.list-changed.outputs.changed == 'true'
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

This repository contains the reference configuration to deploy the Catena-X (CX) specific Keycloak instances.

The instances depend on the [helm chart from Bitnami](https://artifacthub.io/packages/helm/bitnami/keycloak) (chart version 16.1.6, app version 22.0.3).
The instances depend on the [helm chart from Bitnami](https://artifacthub.io/packages/helm/bitnami/keycloak) (chart version 19.3.0, app version 23.0.7).

The repository is split up in:

Expand Down
8 changes: 4 additions & 4 deletions charts/centralidp/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,13 @@
apiVersion: v2
name: centralidp
type: application
version: 2.1.0
appVersion: 22.0.3
description: Helm chart for Catena-X Central Keycloak Instance
version: 3.0.0-rc.1
appVersion: 23.0.7
description: Helm chart for Central Keycloak Instance
home: https://github.com/eclipse-tractusx/portal-iam
sources:
- https://github.com/eclipse-tractusx/portal-iam
dependencies:
- name: keycloak
repository: https://raw.githubusercontent.com/bitnami/charts/archive-full-index/bitnami
version: 16.1.6
version: 19.3.0
8 changes: 7 additions & 1 deletion charts/centralidp/README.md.gotmpl
Original file line number Diff line number Diff line change
Expand Up @@ -55,13 +55,19 @@ This is done by setting the 'example.org' placeholder in the CX-Operator' Identi

Please see notes at [Values.seeding](values.yaml#L146) for upgrading the configuration of the CX-Central realm.

### To 3.0.0

This major changes from the Keycloak version from 22.0.3 to 23.0.7 and bumps the PostgresSQL version of the subchart from 15.4.0 to 15.6.0.

No major issues are expected during the upgrade.

### To 2.1.0

No specific upgrade notes.

### To 2.0.0

This major changes from Keycloak version 16.1.1 to version 22.0.3.
This major changes from the Keycloak version from 16.1.1 to version 22.0.3.

Please have a look at the [CHANGELOG](../../CHANGELOG.md#200) for a more detailed description.

Expand Down
9 changes: 7 additions & 2 deletions charts/centralidp/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ keycloak:
mountPath: "/realms"
initContainers:
- name: import
image: docker.io/tractusx/portal-iam:v2.1.0
image: docker.io/tractusx/portal-iam:pr63
imagePullPolicy: Always
command:
- sh
Expand Down Expand Up @@ -102,6 +102,11 @@ keycloak:
# port: 5432;
# Switch to enable or disable the PostgreSQL helm chart.
enabled: true
# -- Setting to Postgres version 15 as that is the aligned version,
# https://eclipse-tractusx.github.io/docs/release/trg-5/trg-5-07/#aligning-dependency-versions).
# Keycloak helm-chart from Bitnami has moved on to version 16.
image:
tag: "15.6.0"
auth:
# -- Non-root username.
username: kccentral
Expand Down Expand Up @@ -177,7 +182,7 @@ seeding:
mountPath: "app/realms"
initContainers:
- name: init-cx-central
image: docker.io/tractusx/portal-iam:v2.1.0
image: docker.io/tractusx/portal-iam:pr63
imagePullPolicy: IfNotPresent
command:
- sh
Expand Down
8 changes: 4 additions & 4 deletions charts/sharedidp/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,13 @@
apiVersion: v2
name: sharedidp
type: application
version: 2.1.0
appVersion: 22.0.3
description: Helm chart for Catena-X Shared Keycloak Instance
version: 3.0.0-rc.1
appVersion: 23.0.7
description: Helm chart for Shared Keycloak Instance
home: https://github.com/eclipse-tractusx/portal-iam
sources:
- https://github.com/eclipse-tractusx/portal-iam
dependencies:
- name: keycloak
repository: https://raw.githubusercontent.com/bitnami/charts/archive-full-index/bitnami
version: 16.1.6
version: 19.3.0
8 changes: 7 additions & 1 deletion charts/sharedidp/README.md.gotmpl
Original file line number Diff line number Diff line change
Expand Up @@ -61,13 +61,19 @@ Generate client-secrets for the service account with access type 'confidential'.

## Upgrade

### To 3.0.0

This major changes from the Keycloak version from 22.0.3 to 23.0.7 and bumps the PostgresSQL version of the subchart from 15.4.0 to 15.6.0.

No major issues are expected during the upgrade.

### To 2.1.0

No specific upgrade notes.

### To 2.0.0

This major changes from Keycloak version 16.1.1 to version 22.0.3.
This major changes from the Keycloak version from 16.1.1 to version 22.0.3.

Please have a look at the [CHANGELOG](../../CHANGELOG.md#200) for a more detailed description.

Expand Down
7 changes: 6 additions & 1 deletion charts/sharedidp/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ keycloak:
mountPath: "/realms"
initContainers:
- name: import
image: docker.io/tractusx/portal-iam:v2.1.0
image: docker.io/tractusx/portal-iam:pr63
imagePullPolicy: Always
command:
- sh
Expand Down Expand Up @@ -110,6 +110,11 @@ keycloak:
# port: 5432;
# Switch to enable or disable the PostgreSQL helm chart.
enabled: true
# -- Setting to Postgres version 15 as that is the aligned version,
# https://eclipse-tractusx.github.io/docs/release/trg-5/trg-5-07/#aligning-dependency-versions).
# Keycloak helm-chart from Bitnami has moved on to version 16.
image:
tag: "15.6.0"
auth:
# -- Non-root username.
username: kcshared
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17413,7 +17413,7 @@
"parRequestUriLifespan": "60",
"clientSessionMaxLifespan": "0"
},
"keycloakVersion": "22.0.3",
"keycloakVersion": "23.0.7",
"userManagedAccessAllowed": false,
"clientProfiles": {
"profiles": []
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17413,7 +17413,7 @@
"parRequestUriLifespan": "60",
"clientSessionMaxLifespan": "0"
},
"keycloakVersion": "22.0.3",
"keycloakVersion": "23.0.7",
"userManagedAccessAllowed": false,
"clientProfiles": {
"profiles": []
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17413,7 +17413,7 @@
"parRequestUriLifespan": "60",
"clientSessionMaxLifespan": "0"
},
"keycloakVersion": "22.0.3",
"keycloakVersion": "23.0.7",
"userManagedAccessAllowed": false,
"clientProfiles": {
"profiles": []
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17413,7 +17413,7 @@
"parRequestUriLifespan": "60",
"clientSessionMaxLifespan": "0"
},
"keycloakVersion": "22.0.3",
"keycloakVersion": "23.0.7",
"userManagedAccessAllowed": false,
"clientProfiles": {
"profiles": []
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17413,7 +17413,7 @@
"parRequestUriLifespan": "60",
"clientSessionMaxLifespan": "0"
},
"keycloakVersion": "22.0.3",
"keycloakVersion": "23.0.7",
"userManagedAccessAllowed": false,
"clientProfiles": {
"profiles": []
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17413,7 +17413,7 @@
"parRequestUriLifespan": "60",
"clientSessionMaxLifespan": "0"
},
"keycloakVersion": "22.0.3",
"keycloakVersion": "23.0.7",
"userManagedAccessAllowed": false,
"clientProfiles": {
"profiles": []
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2137,7 +2137,7 @@
"cibaInterval": "5",
"realmReusableOtpCode": "false"
},
"keycloakVersion": "22.0.3",
"keycloakVersion": "23.0.7",
"userManagedAccessAllowed": false,
"clientProfiles": {
"profiles": []
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2127,7 +2127,7 @@
"cibaInterval": "5",
"realmReusableOtpCode": "false"
},
"keycloakVersion": "22.0.3",
"keycloakVersion": "23.0.7",
"userManagedAccessAllowed": false,
"clientProfiles": {
"profiles": []
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2288,7 +2288,7 @@
"cibaInterval": "5",
"realmReusableOtpCode": "false"
},
"keycloakVersion": "22.0.3",
"keycloakVersion": "23.0.7",
"userManagedAccessAllowed": false,
"clientProfiles": {
"profiles": []
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2170,7 +2170,7 @@
"parRequestUriLifespan": "60",
"clientSessionMaxLifespan": "0"
},
"keycloakVersion": "22.0.3",
"keycloakVersion": "23.0.7",
"userManagedAccessAllowed": false,
"clientProfiles": {
"profiles": []
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2161,7 +2161,7 @@
"cibaInterval": "5",
"realmReusableOtpCode": "false"
},
"keycloakVersion": "22.0.3",
"keycloakVersion": "23.0.7",
"userManagedAccessAllowed": false,
"clientProfiles": {
"profiles": []
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2162,7 +2162,7 @@
"parRequestUriLifespan": "60",
"clientSessionMaxLifespan": "0"
},
"keycloakVersion": "22.0.3",
"keycloakVersion": "23.0.7",
"userManagedAccessAllowed": false,
"clientProfiles": {
"profiles": []
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2160,7 +2160,7 @@
"cibaInterval": "5",
"realmReusableOtpCode": "false"
},
"keycloakVersion": "22.0.3",
"keycloakVersion": "23.0.7",
"userManagedAccessAllowed": false,
"clientProfiles": {
"profiles": []
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2137,7 +2137,7 @@
"cibaInterval": "5",
"realmReusableOtpCode": "false"
},
"keycloakVersion": "22.0.3",
"keycloakVersion": "23.0.7",
"userManagedAccessAllowed": false,
"clientProfiles": {
"profiles": []
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5209,7 +5209,7 @@
"parRequestUriLifespan": "60",
"clientSessionMaxLifespan": "0"
},
"keycloakVersion": "22.0.3",
"keycloakVersion": "23.0.7",
"userManagedAccessAllowed": false,
"clientProfiles": {
"profiles": []
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2137,7 +2137,7 @@
"cibaInterval": "5",
"realmReusableOtpCode": "false"
},
"keycloakVersion": "22.0.3",
"keycloakVersion": "23.0.7",
"userManagedAccessAllowed": false,
"clientProfiles": {
"profiles": []
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2127,7 +2127,7 @@
"cibaInterval": "5",
"realmReusableOtpCode": "false"
},
"keycloakVersion": "22.0.3",
"keycloakVersion": "23.0.7",
"userManagedAccessAllowed": false,
"clientProfiles": {
"profiles": []
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2288,7 +2288,7 @@
"cibaInterval": "5",
"realmReusableOtpCode": "false"
},
"keycloakVersion": "22.0.3",
"keycloakVersion": "23.0.7",
"userManagedAccessAllowed": false,
"clientProfiles": {
"profiles": []
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2170,7 +2170,7 @@
"parRequestUriLifespan": "60",
"clientSessionMaxLifespan": "0"
},
"keycloakVersion": "22.0.3",
"keycloakVersion": "23.0.7",
"userManagedAccessAllowed": false,
"clientProfiles": {
"profiles": []
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2161,7 +2161,7 @@
"cibaInterval": "5",
"realmReusableOtpCode": "false"
},
"keycloakVersion": "22.0.3",
"keycloakVersion": "23.0.7",
"userManagedAccessAllowed": false,
"clientProfiles": {
"profiles": []
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2162,7 +2162,7 @@
"parRequestUriLifespan": "60",
"clientSessionMaxLifespan": "0"
},
"keycloakVersion": "22.0.3",
"keycloakVersion": "23.0.7",
"userManagedAccessAllowed": false,
"clientProfiles": {
"profiles": []
Expand Down
Loading

0 comments on commit 9c62c93

Please sign in to comment.