Files
helmfile/test/integration/test-cases/kustomized-fetch.sh
T
xiaomudkandyxxhero 1f134d931f fix fetch does not work with kustomized releases (#624)
* fix fetch does not work with kustomized releases

Signed-off-by: xiaomudk <xiaomudk@gmail.com>

* add tests

Signed-off-by: yxxhero <aiopsclub@163.com>

Signed-off-by: xiaomudk <xiaomudk@gmail.com>
Signed-off-by: yxxhero <aiopsclub@163.com>
Co-authored-by: yxxhero <aiopsclub@163.com>
2023-01-15 09:19:01 +08:00

12 lines
520 B
Bash

yaml_kustomized_fetch_input_dir="${cases_dir}/kustomized-fetch/input"
test_start "kustomized fetch issue"
info "Checking kustomized fetch issue with ${yaml_kustomized_fetch_input_dir}/helmfile.yaml"
for i in $(seq 10); do
info "checking kustomized fetch issue #$i"
kustomized_fetch_tmp=$(mktemp -d)
${helmfile} -f ${yaml_kustomized_fetch_input_dir}/helmfile.yaml fetch --output-dir ${kustomized_fetch_tmp} || fail "\"helmfile fetch\" shouldn't fail"
rm -fr ${kustomized_fetch_tmp}
echo code=$?
done