helmfile/pkg
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
..
app Avoid --skip-refresh on local charts (#541) 2022-12-12 16:43:10 +09:00
argparser fix: args parse issue 2022-11-04 10:53:00 +09:00
config Add --output-dir-template flag to the fetch command (#456) 2022-11-05 18:55:02 +08:00
environment bump: upgrade gopkg.in/yaml.v2 to gopkg.in/yaml.v3 2022-10-03 05:24:51 +08:00
envvar Use go-getter with secrets as well (#560) 2022-12-09 07:46:28 +08:00
errors fix incorrent exit code 2022-09-13 08:23:55 +08:00
event Fixes for updates from rebase 2022-09-19 08:55:44 +09:00
exectest Avoid --skip-refresh on local charts (#541) 2022-12-12 16:43:10 +09:00
filesystem Allow helmfile statefile to passed by stdin (#520) 2022-11-22 11:34:05 +08:00
helmexec Avoid --skip-refresh on local charts (#541) 2022-12-12 16:43:10 +09:00
maputil Fix getArray function copy error 2022-11-21 23:30:13 +08:00
plugins add Go lint 2022-07-16 20:21:11 +08:00
remote Use go-getter with secrets as well (#560) 2022-12-09 07:46:28 +08:00
state Avoid --skip-refresh on local charts (#541) 2022-12-12 16:43:10 +09:00
testhelper Prevent excessive log in tests 2022-10-11 06:19:32 +09:00
testutil add Go lint 2022-07-16 20:21:11 +08:00
tmpl bump: upgrade gopkg.in/yaml.v2 to gopkg.in/yaml.v3 2022-10-03 05:24:51 +08:00