From e39ee489d8191ffb6d0f0154c451983be4154fb6 Mon Sep 17 00:00:00 2001 From: Eric Nichols Date: Wed, 12 Aug 2026 16:37:47 -0700 Subject: [PATCH] fix: mount Keycloak PostgreSQL data at official postgres path The volume was mounted at /var/lib/pgsql/data (RHEL/SCL) while PGDATA and library/postgres use /var/lib/postgresql/data/pgdata, so the PVC was never used and Keycloak DB data was not persisted. Align mountPath with the Helm chart and PGDATA. Fixes #295 Signed-off-by: Eric Nichols --- .../src/main/resources/k8s/keycloak-postgresql-deployment.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/operator/src/main/resources/k8s/keycloak-postgresql-deployment.yml b/operator/src/main/resources/k8s/keycloak-postgresql-deployment.yml index b714312..1b08452 100644 --- a/operator/src/main/resources/k8s/keycloak-postgresql-deployment.yml +++ b/operator/src/main/resources/k8s/keycloak-postgresql-deployment.yml @@ -55,7 +55,7 @@ spec: value: /var/lib/postgresql/data/pgdata volumeMounts: - name: "keycloak-postgresql-data" - mountPath: "/var/lib/pgsql/data" + mountPath: "/var/lib/postgresql/data" subPath: pgdata terminationGracePeriodSeconds: 60 volumes: