summaryrefslogtreecommitdiffstats
path: root/roles/ands_kaas/templates
diff options
context:
space:
mode:
authorSuren A. Chilingaryan <csa@suren.me>2018-02-25 23:37:04 +0100
committerSuren A. Chilingaryan <csa@suren.me>2018-02-25 23:37:04 +0100
commit4e5b055d02f7ab1f618fb2426cfff9ebc1c9678a (patch)
tree8abb0a5a80eb7e155975dbd884f3ea0b6f955f9f /roles/ands_kaas/templates
parent93c950b8e2f06a62bb4b7b0f463eec125118aafc (diff)
downloadands-4e5b055d02f7ab1f618fb2426cfff9ebc1c9678a.tar.gz
ands-4e5b055d02f7ab1f618fb2426cfff9ebc1c9678a.tar.bz2
ands-4e5b055d02f7ab1f618fb2426cfff9ebc1c9678a.tar.xz
ands-4e5b055d02f7ab1f618fb2426cfff9ebc1c9678a.zip
A complete working ADEI templte, v1-alpha
Diffstat (limited to 'roles/ands_kaas/templates')
-rw-r--r--roles/ands_kaas/templates/50-kaas-pods.yml.j213
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 %}