[COMMON] Share deployment configuration in Postgres 20/101120/3
authorKrzysztof Opasiak <k.opasiak@samsung.com>
Tue, 4 Feb 2020 15:07:20 +0000 (16:07 +0100)
committerKrzysztof Opasiak <k.opasiak@samsung.com>
Thu, 6 Feb 2020 22:33:03 +0000 (23:33 +0100)
commit56ca885db70845775e49a2e78971946d17620a24
treef20ffc680bde8f07021e688b9bf1052fc6198a33
parent0f811c8387f01dcd0f348024ba1c8fb8e99961a8
[COMMON] Share deployment configuration in Postgres

When I did diff between deployment-primary and deployment-replica it
turned out that this is pretty much the same file apart from primary
and replica words.

To avoid making the same changes in both files, let's just introduce a
template that can be included with parameter.

Issue-ID: OOM-2246
Change-Id: Ia13b993b9f23008d6be6b3d0e8b745446048de4e
Signed-off-by: Krzysztof Opasiak <k.opasiak@samsung.com>
kubernetes/common/postgres/templates/_deployment.tpl [new file with mode: 0644]
kubernetes/common/postgres/templates/deployment-primary.yaml
kubernetes/common/postgres/templates/deployment-replica.yaml