Merge "apply-helm-charts: Job to apply Helm charts"

This commit is contained in:
Zuul 2020-01-11 08:45:29 +00:00 committed by Gerrit Code Review
commit 2513e322e2
5 changed files with 26 additions and 1 deletions

View File

@ -1,4 +1,5 @@
Helm Jobs
=========
.. zuul:autojob:: chart-testing-lint
.. zuul:autojob:: apply-helm-charts
.. zuul:autojob:: chart-testing-lint

3
playbooks/helm/post.yaml Normal file
View File

@ -0,0 +1,3 @@
- hosts: all
roles:
- collect-container-logs

5
playbooks/helm/pre.yaml Normal file
View File

@ -0,0 +1,5 @@
- hosts: all
roles:
- role: clear-firewall
- role: install-kubernetes
- role: ensure-helm

8
playbooks/helm/run.yaml Normal file
View File

@ -0,0 +1,8 @@
- hosts: all
tasks:
- include_role:
name: helm-template
vars:
helm_release_name: "{{ item.key }}"
helm_chart: "{{ item.value }}"
loop: "{{ helm_charts | dict2items }}"

View File

@ -4,3 +4,11 @@
Run chart-testing on Helm charts
pre-run: playbooks/chart-testing/pre.yaml
run: playbooks/chart-testing/run.yaml
- job:
name: apply-helm-charts
description: |
Deploy a Kubernetes cluster and apply charts
pre-run: playbooks/helm/pre.yaml
run: playbooks/helm/run.yaml
post-run: playbooks/helm/post.yaml