diff options
Diffstat (limited to 'roles/ands_kaas/templates')
-rw-r--r-- | roles/ands_kaas/templates/50-kaas-pods.yml.j2 | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/roles/ands_kaas/templates/50-kaas-pods.yml.j2 b/roles/ands_kaas/templates/50-kaas-pods.yml.j2 index 49dab3f..9782f75 100644 --- a/roles/ands_kaas/templates/50-kaas-pods.yml.j2 +++ b/roles/ands_kaas/templates/50-kaas-pods.yml.j2 @@ -183,8 +183,9 @@ objects: {{ type }}: timeoutSeconds: {{ probe.timeout | default(1) }} initialDelaySeconds: {{ probe.delay | default(10) }} - {% if (probe.cmd is defined) %} - command: "{{ probe.cmd }}" + {% if (probe.command is defined) %} + exec: + command: {{ probe.command | to_json }} {% elif (probe.path is defined) %} httpGet: path: {{ probe.path }} @@ -196,5 +197,13 @@ objects: {% endfor %} {% endfor %} {% endif %} + {% if img.hooks is defined %} + lifecycle: + {% for hook in img.hooks %} + {{ hook.type }}: + exec: + command: {{ hook.command | to_json }} + {% endfor %} + {% endif %} {% endfor %} {% endfor %} |