apply-helm-charts: Job to apply Helm charts

This job deploys a Kubernetes cluster and then runs all the
Helm charts provided.

Change-Id: If6c4a6d5bce912f55549d16175554154c86dd25a
This commit is contained in:
Mohammed Naser 2020-01-09 20:27:00 -05:00
parent 8ae49163f3
commit 5833a6f8e3
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