Merge "apply-helm-charts: Job to apply Helm charts"
This commit is contained in:
commit
2513e322e2
@ -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
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