helm: Support for single or multiple values files (#236 was #136)

This commit is contained in:
Jeff Geerling
2020-10-05 12:19:36 -05:00
committed by GitHub
parent 0f33aafca7
commit fc1f4e5ffd
3 changed files with 52 additions and 6 deletions

View File

@@ -0,0 +1,2 @@
---
revisionHistoryLimit: 0

View File

@@ -258,6 +258,25 @@
that:
- install is changed
- name: "Install {{ chart_test }} from {{ source }} with values_files"
helm:
binary_path: "{{ helm_binary }}"
name: test
chart_ref: "{{ chart_source }}"
chart_version: "{{ chart_source_version | default(omit) }}"
namespace: "{{ helm_namespace }}"
values_files:
- "{{ role_path }}/files/values.yaml"
register: install
- name: "Assert that {{ chart_test }} chart has var from {{ source }}"
assert:
that:
- install is changed
- install.status.status | lower == 'deployed'
- install.status.chart == "{{ chart_test }}-{{ chart_test_version }}"
- "install.status['values'].revisionHistoryLimit == 0"
- name: Remove helm namespace
k8s:
api_version: v1