[COMMON] Allow special characters in postgress passwords 85/103485/1
authorKrzysztof Opasiak <k.opasiak@samsung.com>
Tue, 10 Mar 2020 22:53:31 +0000 (23:53 +0100)
committerKrzysztof Opasiak <k.opasiak@samsung.com>
Tue, 10 Mar 2020 22:53:31 +0000 (23:53 +0100)
commit17547340d42db38a0bca7bca934b01964991301b
tree5ab91e46b33eae8cf060b0e24f6f16f9a1888cff
parentb8316cdbeaed1c4929531da836f24639c745ab66
[COMMON] Allow special characters in postgress passwords

Postgres image that we are currently using uses sed to replace
passwords placeholders with their actual values at startup time.
This apprach is very fragile and leads to issues if & happens to be a
part of password as it has a special meaning in sed.

To fix this issue let's just extract the setup.sql file from the
container and process it on our own in init container using envsubst
and then mount it to the main container to be used.

Issue-ID: OOM-2317
Signed-off-by: Krzysztof Opasiak <k.opasiak@samsung.com>
Change-Id: Ifd51d8f0af0099958caa209185fb7a87a0480bd2
kubernetes/common/postgres/configs/setup.sql [new file with mode: 0644]
kubernetes/common/postgres/templates/_deployment.tpl
kubernetes/common/postgres/values.yaml