helmfile/pkg/helmexec
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
..
context.go add Go lint 2022-07-16 20:21:11 +08:00
context_test.go add Go lint 2022-07-16 20:21:11 +08:00
exec.go Avoid --skip-refresh on local charts (#541) 2022-12-12 16:43:10 +09:00
exec_test.go Avoid --skip-refresh on local charts (#541) 2022-12-12 16:43:10 +09:00
exit_error.go fix: Do not include stderr content in result of `{{ exec }}` (#1298) 2020-06-06 09:29:12 +09:00
helmexec.go Avoid --skip-refresh on local charts (#541) 2022-12-12 16:43:10 +09:00
id.go Print command output in line (#1354) 2020-08-29 14:47:22 +09:00
id_test.go Add unittest for newExecutionID 2022-04-24 13:55:28 +08:00
log.go Fix snapshot tests to pass regardless of helm version (#572) 2022-12-10 10:54:03 +08:00
runner.go Use go-getter with secrets as well (#560) 2022-12-09 07:46:28 +08:00
runner_test.go feat: show live output from the Helm binary (#286) 2022-09-18 14:24:35 +09:00