helmfile/pkg/state
javex 4c72814bfa
feat: Ensure repo update is only run once (#1310)
By default `helm dep build` will fetch repo updates before building the
chart. For helmfile this means for every chart with remote dependencies,
another repo update is performed. This isn't necessary as the cache only
needs to be refreshed once.

By performing a `helm repo update` before running any `helm dep`, it is
safe to pass `--skip-refresh` to all `helm dep build` commands as the
cache will be up-to-date.

A few notes to be aware of for this change:
* If there are **no remote dependencies** then this will lead to an
  extra refresh that could be unnecessary. However, a single repo update
  is usually quite fast and can still be skipped with a manual
  `--skip-refresh`.
* There are no tests for this new behaviour yet
* I think even this single update might be unnecessary as any initial
  `helm repo add --force-update` that is normally performed anyway and
  should already refresh all repos. However, I wasn't confident enough
  to simply force this flag at all times and considered this the safer
  option.

Resolves #1310

Signed-off-by: javex <code@inexplicity.de>
2025-09-18 20:42:24 +09:30
..
testdata feat: inject cli state values (--state-values-set) into environment templating context (#1917) 2025-02-14 20:49:07 +08:00
chart_dependency.go fix: two releases using the same chart in different version fails (#1685) 2024-09-12 20:26:45 +08:00
chart_dependency_test.go fix: two releases using the same chart in different version fails (#1685) 2024-09-12 20:26:45 +08:00
create.go Fix panic when helm isn't installed (#2169) 2025-09-09 07:15:46 +08:00
create_test.go chore: fix typo in create_test.go (#2025) 2025-05-05 22:39:20 +08:00
diff_error_propagation_test.go Fix error propagation in helmfile diff when Kubernetes is unreachable (#2149) 2025-09-02 12:51:17 -04:00
environment.go feat(state): add missingFileHandlerConfig and related logic (#2105) 2025-07-21 19:15:51 -04:00
envvals_loader.go feat: inject cli state values (--state-values-set) into environment templating context (#1917) 2025-02-14 20:49:07 +08:00
envvals_loader_test.go feat: inject cli state values (--state-values-set) into environment templating context (#1917) 2025-02-14 20:49:07 +08:00
helmx.go Remove deprecated --wait-retries flag support to fix Helm compatibility error (#2179) 2025-09-11 13:57:28 +08:00
helmx_test.go Remove deprecated --wait-retries flag support to fix Helm compatibility error (#2179) 2025-09-11 13:57:28 +08:00
release.go feat: execute templates against postRendererHooks (#1839) 2025-01-28 09:34:59 -05: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_filters_test.go chore: add tests for release filters (#1629) 2024-07-16 09:45:42 +08:00
release_test.go refactor(yaml): upgrade from gopkg.in/yaml.v2 to v3 (#2039) 2025-05-15 10:21:37 -04:00
selector_test.go feat: add labels for helm release (#1046) 2025-03-30 19:24:41 -04:00
state.go feat: Ensure repo update is only run once (#1310) 2025-09-18 20:42:24 +09:30
state_exec_tmpl.go Expose release version as .Release.ChartVersion for templating (#2080) 2025-06-17 19:41:42 +08:00
state_exec_tmpl_test.go Expose release version as .Release.ChartVersion for templating (#2080) 2025-06-17 19:41:42 +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 Fix enableDNS flag missing in diff command and refactor duplicate logic (#2147) 2025-08-27 14:32:17 +08:00
storage.go fix windows glob issue (#1572) 2024-06-26 13:03:09 +08:00
storage_test.go fix windows glob issue (#1572) 2024-06-26 13:03:09 +08:00
temp.go Replace interface{} by any (#901) 2023-06-16 10:49:05 +09:00
temp_test.go feat(state): add missingFileHandlerConfig and related logic (#2105) 2025-07-21 19:15:51 -04:00
types.go Expose release version as .Release.ChartVersion for templating (#2080) 2025-06-17 19:41:42 +08:00
util.go fix: version path issue (#1344) 2024-02-16 09:08:28 +09:00
util_test.go fix: version path issue (#1344) 2024-02-16 09:08:28 +09:00