mirror of
https://github.com/helmfile/helmfile.git
synced 2026-10-03 09:36:25 +02:00
* Add integration tests for #1749 Signed-off-by: Matthias Baur <m.baur@syseleven.de> * Reset extra args on a higher level to only affect subsequent helmfiles With the implementation before, extra args has been reset after each helm.exec which leads to problems with multiple charts in a helmfile since the correct args are only set once in Template(). But Template() calls helm.exec(template) multiple times. Signed-off-by: Matthias Baur <m.baur@syseleven.de> --------- Signed-off-by: Matthias Baur <m.baur@syseleven.de>
13 lines
726 B
Bash
13 lines
726 B
Bash
issue_1749_input_dir="${cases_dir}/issue-1749/input"
|
|
helmfile_real="$(pwd)/${helmfile}"
|
|
|
|
test_start "issue 1749 helmfile.d template --args --dry-run=server"
|
|
cd "${issue_1749_input_dir}"
|
|
${helmfile_real} template --args --dry-run=server || fail "\"issue 1749 helmfile.d template --args --dry-run=server\" shouldn't fail"
|
|
cd -
|
|
test_pass "issue 1749 helmfile.d template --args --dry-run=server"
|
|
|
|
test_start "issue 1749 helmfile.yaml template --args --dry-run=server"
|
|
${helmfile_real} template -f "${issue_1749_input_dir}/helmfile-2in1.yaml.gotmpl" --args --dry-run=server || fail "\"issue 1749 helmfile.yaml template --args --dry-run=server\" shouldn't fail"
|
|
test_pass "issue 1749 helmfile.yaml template --args --dry-run=server"
|