fix: two releases using the same chart in different version fails (#1685)

* fix: two releases using the same chart in different version fails

Signed-off-by: yxxhero <aiopsclub@163.com>
This commit is contained in:
yxxhero
2024-09-12 20:26:45 +08:00
committed by GitHub
parent 65f4e6122a
commit 18529ab7c5
4 changed files with 151 additions and 122 deletions
+10
View File
@@ -34,4 +34,14 @@ if [[ ${HELMFILE_V1MODE} = true ]]; then
fi
(${helmfile} -f ${regression_case_input_dir}/${config_file} template 1>/dev/null) || fail "\"helmfile template\" shouldn't fail"
info "https://github.com/helmfile/helmfile/issues/1682"
config_file="issue.1682.yaml"
if [[ ${HELMFILE_V1MODE} = true ]]; then
pushd "${regression_case_input_dir}"
mv "${config_file}" "${config_file}.gotmpl"
config_file="${config_file}.gotmpl"
popd
fi
(${helmfile} -f ${regression_case_input_dir}/${config_file} deps 1>/dev/null) || fail "\"helmfile deps\" shouldn't fail"
test_pass "regression tests"
@@ -0,0 +1,13 @@
repositories:
- name: elastic
url: https://helm.elastic.co/
releases:
- name: elasticsearch7
chart: elastic/elasticsearch
version: 7.17.3
- name: elasticsearch8
chart: elastic/elasticsearch
version: 8.5.1
- name: elasticsearchempty
chart: elastic/elasticsearch