Feeds DB bug when internal postgres and enterprise
Summary
Steps to reproduce
deploy anchore with enterprise and internal database
What is the current behavior?
anchore-anchore-feeds-db-0 1/2 CrashLoopBackOff 7 (2m36s ago) 13m
What is the expected behavior?
not crashlooping
Relevant logs and/or screenshots
# kubectl logs -n anchore pod/anchore-anchore-feeds-db-0
chmod: changing permissions of '/var/run/postgresql': Operation not permitted
initdb: could not look up effective user ID 1001: user does not exist
Possible fixes
anchore-feeds-db:
containerSecurityContext:
enabled: true
runAsUser: 26
runAsGroup: 26
capabilities:
drop:
- ALL
persistence:
subPath: "data/pgdata"
/cc {put CODEOWNERs @githandles here}