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

Defensive Validation to avoid NPE #173

Merged
merged 5 commits into from
Jul 20, 2020

Conversation

dvaldivia
Copy link
Collaborator

Fixes #171

Adds additional validations to avoid hitting NPE on expected configurations.

@dvaldivia dvaldivia self-assigned this Jul 19, 2020
pkg/apis/operator.min.io/v1/helper.go Outdated Show resolved Hide resolved
pkg/apis/operator.min.io/v1/helper.go Outdated Show resolved Hide resolved
pkg/apis/operator.min.io/v1/helper.go Outdated Show resolved Hide resolved
dvaldivia and others added 3 commits July 19, 2020 20:42
Co-authored-by: Harshavardhana <harsha@minio.io>
Co-authored-by: Harshavardhana <harsha@minio.io>
Co-authored-by: Harshavardhana <harsha@minio.io>
@nitisht nitisht merged commit e651e28 into minio:master Jul 20, 2020
jmontleon added a commit to jmontleon/operator that referenced this pull request Jul 23, 2024
On EKS and probably other kubernetes variants the PostgreSQL pods run as
user 26. Without setting the fsGroup the storage is mounted 755 owned by
root:root so postgres can't write and fails to start with a permission
denied.

26 comes from the Dockerfile the image is built with
https://github.com/sclorg/postgresql-container/blob/master/12/Dockerfile.centos7#L88

Signed-off-by: Jason Montleon <jmontleo@redhat.com>
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.

Crash in minioIOinstance validator
4 participants