Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Maintain PGDATA for postresql on OCP #21

Merged
merged 1 commit into from
Nov 13, 2023

Conversation

tarilabs
Copy link
Member

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:

  • The commits and have meaningful messages; the author will squash them after approval or will ask to merge with squash.
  • Testing instructions have been added in the PR body (for PRs involving changes that are not immediately obvious).
  • The developer has manually tested the changes and verified that the changes work

@tarilabs tarilabs requested a review from a team November 13, 2023 10:34
@tarilabs tarilabs force-pushed the tarilabs-20231112-pgdata branch from b8edc60 to 12a94e7 Compare November 13, 2023 16:55
@dhirajsb dhirajsb force-pushed the tarilabs-20231112-pgdata branch from 12a94e7 to dd611dc Compare November 13, 2023 17:00
@dhirajsb dhirajsb merged commit 5c1b0db into opendatahub-io:main Nov 13, 2023
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Need to maintain PGDATA for postresql on OCP
2 participants