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:
parent
8ae49163f3
commit
5833a6f8e3
@ -1,4 +1,5 @@
|
||||
Helm Jobs
|
||||
=========
|
||||
|
||||
.. zuul:autojob:: apply-helm-charts
|
||||
.. zuul:autojob:: chart-testing-lint
|
3
playbooks/helm/post.yaml
Normal file
3
playbooks/helm/post.yaml
Normal file
@ -0,0 +1,3 @@
|
||||
- hosts: all
|
||||
roles:
|
||||
- collect-container-logs
|
5
playbooks/helm/pre.yaml
Normal file
5
playbooks/helm/pre.yaml
Normal file
@ -0,0 +1,5 @@
|
||||
- hosts: all
|
||||
roles:
|
||||
- role: clear-firewall
|
||||
- role: install-kubernetes
|
||||
- role: ensure-helm
|
8
playbooks/helm/run.yaml
Normal file
8
playbooks/helm/run.yaml
Normal 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 }}"
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user