[COMMON] Fix name generation in readinessCheck template 92/110292/1
authorKrzysztof Opasiak <k.opasiak@samsung.com>
Thu, 16 Jul 2020 19:02:56 +0000 (21:02 +0200)
committerKrzysztof Opasiak <k.opasiak@samsung.com>
Thu, 16 Jul 2020 19:02:56 +0000 (21:02 +0200)
commite00bd6af6003beb51111eb3a1a7dd2def3bf80df
tree84bb3d32652874fb0d8e102d18b84e5e80cfef72
parent3fa21c6d5531d387849afa55cd0fbd890f9edb6b
[COMMON] Fix name generation in readinessCheck template

According to docummentation readinessCheck template accept wait_for
value in a type of list. Unfortunately in that case it generated the
init container name with -- as the name key was empty.

This commit fixes this and ensures acceptance of both simple and
extended format for wait_for value.

Issue-ID: OOM-2511
Signed-off-by: Krzysztof Opasiak <k.opasiak@samsung.com>
Change-Id: Ia345251f01ade5191f0a06d6eaec41cdd6a53459
kubernetes/common/readinessCheck/templates/_readinessCheck.tpl