mirror of
https://github.com/helmfile/helmfile.git
synced 2026-10-08 05:11:54 +02:00
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:
@@ -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
|
||||
Reference in New Issue
Block a user