Install helm releases the usual way

This is to ensure that all helm releases installations succeed.

[CI] Switch testing to the entire platform.

Change-Id: If8fba281e25d7bf412b11ec01e1e2469cde06ef6
This commit is contained in:
Radosław Piliszek 2024-04-08 11:07:15 +02:00
parent 8ef14d201c
commit cfb5749b12
2 changed files with 27 additions and 19 deletions

View File

@ -1,15 +1,25 @@
- hosts: all
tasks:
- name: Install helm charts
include_role:
name: helm-template
- name: Pull helm charts deps
command: "helm dependency build {{ helm_chart }}"
vars:
helm_release_name: "{{ zj_item.key }}"
helm_chart: "{{ zj_item.value }}"
helm_wait_for_pods: false # we want this once and with more control
loop: "{{ helm_charts | dict2items }}"
loop_control:
loop_var: 'zj_item'
args:
chdir: "{{ zuul.project.src_dir }}"
- name: Install helm charts
command: "helm install {{ helm_release_name }} {{ helm_chart }}"
vars:
helm_release_name: "{{ zj_item.key }}"
helm_chart: "{{ zj_item.value }}"
loop: "{{ helm_charts | dict2items }}"
loop_control:
loop_var: 'zj_item'
args:
chdir: "{{ zuul.project.src_dir }}"
- name: Wait for the deployments
command: kubectl wait --for=condition=Available --timeout=300s deployment --all

View File

@ -22,20 +22,6 @@
# NOTE: hackish way to only run it when its definition changes
# as no files exist in this repo that control its behaviour
- ^never-existing-file$
- nebulous-component-template-apply-helm-charts:
vars:
zuul_work_dir: src/opendev.org/nebulous/component-template
required-projects:
- nebulous/component-template
files: &nebulous-component-template-apply-helm-charts-files
- ^playbooks/helm/
- ^playbooks/kubernetes/
- ^roles/check-pod-restarts/
- ^roles/collect-kubernetes-pods-logs/
- ^roles/collect-kubernetes-state/
- ^roles/ensure-minikube/
- opendev-buildset-registry:
files: *nebulous-component-template-apply-helm-charts-files
# cross-testing with library-template
- nebulous-library-template-build-java-libraries:
@ -48,5 +34,17 @@
- ^roles/install-jdk/
- ^roles/install-maven/
# cross-testing the main helm gate
- nebulous-platform-apply-helm-charts:
files: &nebulous-component-template-apply-helm-charts-files
- ^playbooks/helm/
- ^playbooks/kubernetes/
- ^roles/check-pod-restarts/
- ^roles/collect-kubernetes-pods-logs/
- ^roles/collect-kubernetes-state/
- ^roles/ensure-minikube/
- opendev-buildset-registry:
files: *nebulous-component-template-apply-helm-charts-files
gate:
jobs: *check-jobs