helmfile/pkg/state
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
..
testdata fix env value lost in environment values (#605) 2022-12-27 09:48:07 +08:00
chart_dependency.go resolved deps even when installed=false (#1120) 2023-11-09 12:02:32 +08:00
chart_dependency_test.go fix: helmfile deps issue with oci repo 2022-10-09 08:56:52 +08:00
create.go feat: add an option to set a custom kustomize binary (#1012) 2023-09-13 06:58:53 -05:00
create_test.go feat: add an option to set a custom kustomize binary (#1012) 2023-09-13 06:58:53 -05:00
environment.go Replace interface{} by any (#901) 2023-06-16 10:49:05 +09:00
envvals_loader.go Replace interface{} by any (#901) 2023-06-16 10:49:05 +09:00
envvals_loader_test.go Replace interface{} by any (#901) 2023-06-16 10:49:05 +09:00
helmx.go Add "PostRendererArgs" option to be passed to helm (#1133) 2023-11-21 21:32:14 +08:00
helmx_test.go optimize flag logic about wait (#1051) 2023-10-19 07:32:00 -05:00
release.go Replace interface{} by any (#901) 2023-06-16 10:49:05 +09:00
release_error.go Fix misleading `helmfile diff` output (#1174) 2020-04-04 17:39:20 +09:00
release_filters.go Allow more characters in label selectors (#2064) 2022-03-09 20:38:29 +09:00
release_test.go add more tests for Desired func (#1082) 2023-10-22 20:49:18 +08:00
selector_test.go fix: helmfile template fails when selector matches a chart fetched with go-getter 2022-11-13 15:10:57 +08:00
state.go fix: prevent preparing chart for disabled releases (#1210) 2024-01-02 08:56:07 +08:00
state_exec_tmpl.go Allow secrets to be excluded from release template inheritance (#1189) 2023-12-05 18:17:48 +08:00
state_exec_tmpl_test.go feat: include func support (#1187) 2023-12-04 21:51:01 +08:00
state_gogetter_test.go Prevent excessive log in tests 2022-10-11 06:19:32 +09:00
state_run.go Drop Helm v2 support (#613) 2023-01-17 09:24:47 +09:00
state_test.go bump helm version to 3.13.3 (#1225) 2023-12-14 10:26:17 +08:00
storage.go fix set-file cannot find the file on windows (#908) 2023-06-27 04:56:09 +08:00
storage_test.go fix set-file cannot find the file on windows (#908) 2023-06-27 04:56:09 +08:00
temp.go Replace interface{} by any (#901) 2023-06-16 10:49:05 +09:00
temp_test.go Create DeleteWait and DeleteTimeout parameters for Destroy (#1177) 2023-12-05 08:38:37 +08:00
types.go Replace interface{} by any (#901) 2023-06-16 10:49:05 +09:00
util.go Drop Helm v2 support (#613) 2023-01-17 09:24:47 +09:00
util_test.go Add support for ChartCenter (#1492) 2020-09-21 15:31:24 +09:00