mirror of
https://github.com/helmfile/helmfile.git
synced 2026-10-21 11:56:08 +02:00
fix: keep all chart dependencies key / values (#2501)
* feat: Refactor TestRewriteChartDependencies Signed-off-by: Etienne Champetier <e.champetier@ateme.com> * fix: keep all chart dependencies key / values In rewriteChartDependencies we were only parsing name / repository / version, thus dropping keys like condition / import-values. This at least fixes the use of condition. Signed-off-by: Etienne Champetier <e.champetier@ateme.com> --------- Signed-off-by: Etienne Champetier <e.champetier@ateme.com>
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
chart_deps_condition_input_dir="${cases_dir}/chart-deps-condition/input"
|
||||
|
||||
chart_deps_condition_tmp=$(mktemp -d)
|
||||
actual=${chart_deps_condition_tmp}/actual.yaml
|
||||
expected="${cases_dir}/chart-deps-condition/output/template"
|
||||
|
||||
test_start "chart with dependencies and condition"
|
||||
|
||||
# --concurrency 1 is a workaround for https://github.com/helmfile/helmfile/issues/2502
|
||||
${helmfile} -f ${chart_deps_condition_input_dir}/helmfile.yaml template --skip-deps --concurrency 1 > ${actual} || fail "\"helmfile template\" shouldn't fail"
|
||||
./dyff between -bs ${expected} ${actual} || fail "\"helmfile template\" should be consistent"
|
||||
|
||||
test_pass "chart with dependencies and condition"
|
||||
Reference in New Issue
Block a user