opendatahub-io / model-registry-operator

Apache License 2.0
3 stars 19 forks source link

Maintain PGDATA for postresql on OCP #21

Closed tarilabs closed 12 months ago

tarilabs commented 1 year ago

Resolves #20

Description

Maintain PGDATA as required on OCP and other K8s clusters.

How Has This Been Tested?

BEFORE

Showing the issue:

Screenshot 2023-11-12 at 17 39 59

Screenshot 2023-11-12 at 17 40 13

initdb: error: directory "/var/lib/postgresql/data" exists but is not empty
initdb: detail: It contains a lost+found directory, perhaps due to it being a mount point.
initdb: hint: Using a mount point directly as the data directory is not recommended.
Create a subdirectory under the mount point.

AFTER

With this fix applied (kubectl apply -f config/samples/postgres-db.yaml):

Screenshot 2023-11-12 at 18 09 04

Screenshot 2023-11-12 at 18 09 12

Screenshot 2023-11-12 at 18 17 03

Merge criteria: