Fix helm ignoring given context (#387)

Fixes: #385
This commit is contained in:
Mike Graves
2021-03-15 00:34:06 -04:00
committed by GitHub
parent af41efdf46
commit c4182ad84f
3 changed files with 22 additions and 2 deletions

View File

@@ -348,6 +348,24 @@
that:
result.stat.exists
- name: Release using non-existent context
helm:
binary_path: "{{ helm_binary }}"
name: test
chart_ref: "{{ chart_source }}"
chart_version: "{{ chart_source_version | default(omit) }}"
namespace: "{{ helm_namespace }}"
create_namespace: true
context: does-not-exist
ignore_errors: yes
register: result
- name: Assert that release fails with non-existent context
assert:
that:
- result is failed
- "'context \"does-not-exist\" does not exist' in result.stderr"
always:
- name: Clean up temp dir
file: