Adapting to Dublin realase 22/89022/2
authorroot <m.pilat@partner.samsung.com>
Fri, 31 May 2019 12:03:05 +0000 (14:03 +0200)
committerroot <m.pilat@partner.samsung.com>
Tue, 4 Jun 2019 08:48:19 +0000 (10:48 +0200)
In Dublin:
First project has taken ownership of own helm charts, oom repository must be obtained with subrepositories.
By default no applications are enabled, introducing a way to submit more override files in to installer

Issue-ID: OOM-1861
Signed-off-by: root <m.pilat@partner.samsung.com>
Change-Id: I1724de6b87bd0e9d17df4d0f55615a3f1c439d40

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}"