helmfile/pkg/state
Indrek Juhkam bdc6982172
Avoid --skip-refresh on local charts (#541)
All the dependencies get correctly installed when dealing with remote
charts.

If there's a local chart that depends on remote dependencies then those
don't get automatically installed. See #526. They end up with this
error:

```
Error: no cached repository for helm-manager-b6cf96b91af4f01317d185adfbe32610179e5246214be9646a52cb0b86032272 found. (try 'helm repo update'): open /root/.cache/helm/repository/helm-manager-b6cf96b91af4f01317d185adfbe32610179e5246214be9646a52cb0b86032272-index.yaml: no such file or directory
```

One workaround for that would be to add the repositories from the local
charts. Something like this:

```
cd local-chart/ && helm dependency list $dir 2> /dev/null | tail +2 | head -n -1 | awk '{ print "helm repo add " $1 " " $3 }' | while read cmd; do $cmd; done
```

This however is not trivial to parse and implement.

An easier fix which I did here is just to not allow doing
`--skip-refresh` for local repositories.

Fixes #526

Signed-off-by: Indrek Juhkam <indrek@urgas.eu>

Signed-off-by: Indrek Juhkam <indrek@urgas.eu>
2022-12-12 16:43:10 +09:00
..
testdata Add regression tests for environment values merge (#1170) 2020-04-04 14:27:29 +09:00
chart_dependency.go Add the ability to specify a lock file (#432) 2022-11-12 08:59:56 +09:00
chart_dependency_test.go fix: helmfile deps issue with oci repo 2022-10-09 08:56:52 +08:00
create.go Use go-getter with secrets as well (#560) 2022-12-09 07:46:28 +08:00
create_test.go Add the ability to specify a lock file (#432) 2022-11-12 08:59:56 +09:00
environment.go Add support for kubeContext in environments (#1675) 2021-03-23 18:06:53 +09:00
envvals_loader.go bump: upgrade gopkg.in/yaml.v2 to gopkg.in/yaml.v3 2022-10-03 05:24:51 +08:00
envvals_loader_test.go Prevent excessive log in tests 2022-10-11 06:19:32 +09:00
helmx.go Introduce Helmfile's own filesystem abstraction to correctly unit test some components (#307) 2022-08-24 12:58:43 +09:00
release.go bump: upgrade gopkg.in/yaml.v2 to gopkg.in/yaml.v3 2022-10-03 05:24:51 +08: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
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 Avoid --skip-refresh on local charts (#541) 2022-12-12 16:43:10 +09:00
state_exec_tmpl.go bump: upgrade gopkg.in/yaml.v2 to gopkg.in/yaml.v3 2022-10-03 05:24:51 +08:00
state_exec_tmpl_test.go fix lint error 2022-08-13 07:40:32 +08:00
state_gogetter_test.go Prevent excessive log in tests 2022-10-11 06:19:32 +09:00
state_run.go fix: helmfile template fails when selector matches a chart fetched with go-getter 2022-11-13 15:10:57 +08:00
state_test.go declare "reuse values" control mode in helmDefaults (#527) 2022-11-20 08:47:48 +08:00
storage.go Introduce Helmfile's own filesystem abstraction to correctly unit test some components (#307) 2022-08-24 12:58:43 +09:00
storage_test.go Prevent excessive log in tests 2022-10-11 06:19:32 +09:00
temp.go fix lint error 2022-08-13 07:40:32 +08:00
temp_test.go add Go lint 2022-07-16 20:21:11 +08:00
types.go Rename module to github.com/helmfile/helmfile 2022-05-18 10:05:07 -04:00
util.go Avoid --skip-refresh on local charts (#541) 2022-12-12 16:43:10 +09:00
util_test.go Add support for ChartCenter (#1492) 2020-09-21 15:31:24 +09:00