Add support for extra helm install arguments 48/88348/4
authorPetr Ospalý <p.ospaly@partner.samsung.com>
Thu, 23 May 2019 12:34:22 +0000 (14:34 +0200)
committerMichal Ptacek <m.ptacek@partner.samsung.com>
Wed, 29 May 2019 10:35:12 +0000 (10:35 +0000)
Change-Id: Ie0b4e812acf6fba4e4b8f082533ab2f998456095
Issue-ID: OOM-1877
Signed-off-by: Petr Ospalý <p.ospaly@partner.samsung.com>
ansible/roles/application/defaults/main.yml
ansible/roles/application/molecule/default/tests/test_default.py
ansible/roles/application/tasks/install.yml

index dec1760..84fffec 100644 (file)
@@ -1,6 +1,8 @@
 ---
 helm_repository_name: local
 helm_repository_url: http://127.0.0.1:8879
+helm_extra_install_options:
+  - { opt: '--timeout 1800'}
 # Override file generation for Helm application can be customized by any role
 # given by user and found by ansible from roles_path.
 # By default override file is generated by 'application-override' role that is
index 3e0cbb4..5edceff 100644 (file)
@@ -16,7 +16,8 @@ serve
 repo list
 repo add local http://127.0.0.1:8879
 install --name moleculetestapp local/moleculetestapp --namespace \
-moleculetestapp -f /opt/moleculetestapp/override.yaml"""
+moleculetestapp -f /opt/moleculetestapp/override.yaml \
+--timeout 1800"""
     assert fc == expected_content
 
 
index cdc7ced..bdf6e51 100644 (file)
@@ -72,6 +72,7 @@
           {{ helm_repository_name }}/{{ app_helm_chart_name }}
           --namespace {{ app_kubernetes_namespace }}
           {{ '' if app_skip_helm_override else '-f ' + app_helm_override_file }}
+          {% for arg in helm_extra_install_options %} {{ arg.opt }} {% endfor %}
   changed_when: true  # when executed its a changed type of action
   register: helm_install
   failed_when: helm_install.stderr