summaryrefslogtreecommitdiffstats
path: root/roles/ands_kaas/templates
diff options
context:
space:
mode:
authorSuren A. Chilingaryan <csa@suren.me>2019-08-22 06:29:26 +0200
committerSuren A. Chilingaryan <csa@suren.me>2019-08-22 06:29:26 +0200
commitcf60089e1302f016cf38b8dd9c25d1c296bd4647 (patch)
treef84f07b4abe55628108597a67c80c0c2f01a5880 /roles/ands_kaas/templates
parente41e21f6d0f5ca7aace86bf60e8b503bb20fdcd5 (diff)
downloadands-cf60089e1302f016cf38b8dd9c25d1c296bd4647.tar.gz
ands-cf60089e1302f016cf38b8dd9c25d1c296bd4647.tar.bz2
ands-cf60089e1302f016cf38b8dd9c25d1c296bd4647.tar.xz
ands-cf60089e1302f016cf38b8dd9c25d1c296bd4647.zip
Fix support of arguments in KaaS builders
Diffstat (limited to 'roles/ands_kaas/templates')
-rw-r--r--roles/ands_kaas/templates/40-kaas-app-builders.yml.j26
1 files changed, 5 insertions, 1 deletions
diff --git a/roles/ands_kaas/templates/40-kaas-app-builders.yml.j2 b/roles/ands_kaas/templates/40-kaas-app-builders.yml.j2
index 090f15a..d033eda 100644
--- a/roles/ands_kaas/templates/40-kaas-app-builders.yml.j2
+++ b/roles/ands_kaas/templates/40-kaas-app-builders.yml.j2
@@ -45,7 +45,11 @@ objects:
{{ type | lower }}Strategy:
dockerfilePath: "{{ builder.dockerfile | default('Dockerfile') }}"
{% if builder.args is defined %}
- buildArgs: {{ builder.args | to_json }}
+ buildArgs:
+ {% for arg_name, arg_val in builder.args.iteritems() %}
+ - name: "{{ arg_name }}"
+ value: "{{ arg_val }}"
+ {% endfor %}
{% endif %}
{% else %}
type: {{ type }}