blackduck-alert
blackduck-alert copied to clipboard
IALERT-3236: Address upgrade problems in helm deployments
This address 3 different problems encountered while performing upgrades:
- Centos image creates an Admin user and non-admin user as part of its standard deployment. Alpine does not do this. The user passed to the Alpine image is created is an admin. Because of this, we need to make the admin user used for the Centos DB initialization available to Alpine.
- Centos creates a conf file (openshift-custom-postgresql.conf) that is included in postgresql.conf. This file is generated on every startup, and is stored outside of the volume. Because of this, we need to handle creating this file.
- Centos stores its DB data in a different directory. Because of this, we had to handle being able to override this value.
** Please review ticket for testing scenarios done using the changes in this PR