Merge "Adapting to Dublin realase"
authorMichal Zegan <m.zegan@samsung.com>
Wed, 5 Jun 2019 09:05:05 +0000 (09:05 +0000)
committerGerrit Code Review <gerrit@onap.org>
Wed, 5 Jun 2019 09:05:05 +0000 (09:05 +0000)
ansible/roles/application/defaults/main.yml
ansible/roles/application/tasks/install.yml
build/fetch_and_patch_charts.sh

index 84fffec..2ae668a 100644 (file)
@@ -11,3 +11,5 @@ helm_extra_install_options:
 app_skip_helm_override: false
 app_helm_override_role: application-override
 app_helm_override_file: "{{ app_data_path }}/override.yaml"
+helm_overide_files:
+  - "{{ app_helm_override_file }}"
index bdf6e51..003631d 100644 (file)
@@ -71,7 +71,7 @@
           {{ app_helm_release_name }}
           {{ helm_repository_name }}/{{ app_helm_chart_name }}
           --namespace {{ app_kubernetes_namespace }}
-          {{ '' if app_skip_helm_override else '-f ' + app_helm_override_file }}
+          {% if not app_skip_helm_override %} {% for arg in helm_overide_files %} {{ '-f ' + arg }} {% endfor %} {% endif %}
           {% for arg in helm_extra_install_options %} {{ arg.opt }} {% endfor %}
   changed_when: true  # when executed its a changed type of action
   register: helm_install
index 79d7a01..22d45e6 100755 (executable)
@@ -54,7 +54,7 @@ TOTAL=5
 PATCH_FILE=$(realpath "${3}")
 
 echo -e "${_G}[Step $((CURR++))/${TOTAL} cloning repo with charts to be patched]${C_}"
-git clone "${1}" "${4}"
+git clone --recurse-submodules "${1}" "${4}"
 
 echo -e "${_G}[Step $((CURR++))/${TOTAL} setting working dir to ${4}]${C_}"
 pushd "${4}"