helmfile/test/integration/test-cases
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
..
chart-needs use dyff as yamldiff tool (#542) 2022-11-27 09:47:09 +09:00
chartify fix: chartifyOpts ignore release set values (#896) 2023-06-13 23:28:27 +08:00
chartify-with-non-chart-dir fix chartify with non-chart dir (#1105) 2023-10-31 13:45:10 +08:00
cli-overwrite-environment-values fix #1095 (#1100) 2023-11-01 11:55:55 +08:00
diff-args fix #1095 (#1100) 2023-11-01 11:55:55 +08:00
happypath fix: prevent preparing chart for disabled releases (#1210) 2024-01-02 08:56:07 +08:00
helmfile-double-fetch/input fix: oci pull directory conflict when download twice (#914) 2023-07-23 21:10:03 +08:00
include-template-func feat: include func support (#1187) 2023-12-04 21:51:01 +08:00
kustomized-fetch/input fix fetch does not work with kustomized releases (#624) 2023-01-15 09:19:01 +08:00
postrender Add "PostRendererArgs" option to be passed to helm (#1133) 2023-11-21 21:32:14 +08:00
regression/input Add helmfile state validate policy (#592) 2022-12-21 10:49:31 +08:00
secretssops Refactor integration tests (#531) 2022-11-23 14:44:16 +09:00
skip-diff-output enable run skip-diff-output tests (#1104) 2023-10-28 21:04:02 +08:00
v1-subhelmfile-multi-bases-with-array-values cleanup: remove tls configures about helm v2 (#880) 2023-06-03 22:02:46 +08:00
yaml-overwrite Use gopkg.in/yaml.v2 for Helmfile v0.x (#609) 2023-01-04 18:17:24 +09:00
chart-needs.sh remove helm v2 code in tests (#648) 2023-01-24 07:02:57 +09:00
chartify-with-non-chart-dir.sh fix chartify with non-chart dir (#1105) 2023-10-31 13:45:10 +08:00
chartify.sh Fix set flag are ignored when used in conjunction with jsonPatches (#867) 2023-05-24 07:29:19 +08:00
cli-overwrite-environment-values.sh fix #1095 (#1100) 2023-11-01 11:55:55 +08:00
diff-args.sh fix #1095 (#1100) 2023-11-01 11:55:55 +08:00
happypath.sh remove helm v2 code in tests (#648) 2023-01-24 07:02:57 +09:00
helmfile-double-fetch.sh fix: oci pull directory conflict when download twice (#914) 2023-07-23 21:10:03 +08:00
include-template-func.sh feat: include func support (#1187) 2023-12-04 21:51:01 +08:00
kustomized-fetch.sh fix fetch does not work with kustomized releases (#624) 2023-01-15 09:19:01 +08:00
postrender.sh Add "PostRendererArgs" option to be passed to helm (#1133) 2023-11-21 21:32:14 +08:00
regression.sh remove helm v2 code in tests (#648) 2023-01-24 07:02:57 +09:00
secretssops.sh remove helm v2 code in tests (#648) 2023-01-24 07:02:57 +09:00
skip-diff-output.sh enable run skip-diff-output tests (#1104) 2023-10-28 21:04:02 +08:00
v1-subhelmfile-multi-bases-with-array-values.sh fix: loadBases overrodeEnv issue (#838) 2023-05-08 05:24:32 +08:00
yaml-overwrite.sh remove helm v2 code in tests (#648) 2023-01-24 07:02:57 +09:00