From 42bed33452029b9a2a5ab0936821d3b6cf014706 Mon Sep 17 00:00:00 2001 From: Lek Date: Tue, 5 Mar 2024 14:53:22 +0800 Subject: [PATCH] fix: add subpath for offpg (#342) (cherry picked from commit cdd746af4fade248b47165fff529d9ede4c0fa67) --- addons/official-postgresql/templates/clusterdefinition.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/addons/official-postgresql/templates/clusterdefinition.yaml b/addons/official-postgresql/templates/clusterdefinition.yaml index b4200cc04..864a60fed 100644 --- a/addons/official-postgresql/templates/clusterdefinition.yaml +++ b/addons/official-postgresql/templates/clusterdefinition.yaml @@ -61,6 +61,7 @@ spec: mountPath: /dev/shm - name: data mountPath: /var/lib/postgresql/data + subPath: data - name: postgresql-config mountPath: /var/lib/postgresql/conf - name: scripts @@ -86,7 +87,7 @@ spec: apiVersion: v1 fieldPath: metadata.namespace - name: PGDATA - value: /var/lib/postgresql/data + value: /var/lib/postgresql/data/data - name: POSTGRES_USER valueFrom: secretKeyRef: