helmfile/pkg
Seonghoi Lee 4871a92b8c
fix: prevent preparing chart for disabled releases (#1210)
* fix: prevent preparing chart for disabled releases

Previously, PrepareCharts does not filter any releases whose condition
is disabled with no selectors.

Prevent following things from
- using any unnecessary computing resources for disabled charts
- throwing any error from wrong configurations for disabled charts

Signed-off-by: Seonghoi lee <mighty1231@gmail.com>

* fix: working for integration test about list and build

Some tests require that PrepareCharts without any selector
may not add any labels on the release.

make markExcludedReleases do not add any label without any selectors

Signed-off-by: Seonghoi lee <mighty1231@gmail.com>

* fix: prevent resolved chart version loss

State loss the resolved chart version info from st.Releases
when st.GetSelectedReleases() be called

update st.Releases after st.GetSelectedReleases() in prepareCharts

Signed-off-by: Seonghoi lee <mighty1231@gmail.com>

* fix: preserve resolved version from resolveDeps

In PrepareCharts, the version, resolved from resolveDeps,
is removed after invoking GetSelectedReleases.

Do updateDeps at the first before GetSelectedReleases call

Signed-off-by: Seonghoi lee <mighty1231@gmail.com>

---------

Signed-off-by: Seonghoi lee <mighty1231@gmail.com>
2024-01-02 08:56:07 +08:00
..
app bump helm version to 3.13.3 (#1225) 2023-12-14 10:26:17 +08:00
argparser fix #1095 (#1100) 2023-11-01 11:55:55 +08:00
config fix: --state-values-set unable to set booleans (#1199) 2023-12-08 21:42:40 +08:00
environment Replace interface{} by any (#901) 2023-06-16 10:49:05 +09:00
envvar clean: helm v2 logic code (#736) 2023-03-12 00:28:39 +08:00
errors Replace interface{} by any (#901) 2023-06-16 10:49:05 +09:00
event feat: include func support (#1187) 2023-12-04 21:51:01 +08:00
exectest chore: join with space (#963) 2023-08-08 13:25:54 +08:00
filesystem feat: include func support (#1187) 2023-12-04 21:51:01 +08:00
helmexec fix: support large output with --enable-live-ouput (#1139) 2023-11-12 06:45:08 +08:00
maputil fix: --state-values-set unable to set booleans (#1199) 2023-12-08 21:42:40 +08:00
plugins bump vals to v0.22.0 (#703) 2023-02-17 14:09:49 +08:00
policy fix checker for empty array case (#1153) 2023-11-20 16:34:24 +08:00
remote simplify multierr usage with standard errors (#1208) 2023-12-10 20:04:05 +08:00
runtime Use gopkg.in/yaml.v2 for Helmfile v0.x (#609) 2023-01-04 18:17:24 +09:00
state fix: prevent preparing chart for disabled releases (#1210) 2024-01-02 08:56:07 +08:00
testhelper replace custom diff in tests using testify (#1215) 2023-12-13 06:32:38 +08:00
testutil consistently use Masterminds/semver (#1209) 2023-12-10 19:05:07 +08:00
tmpl feat: include func support (#1187) 2023-12-04 21:51:01 +08:00
yaml Replace interface{} by any (#901) 2023-06-16 10:49:05 +09:00