helmfile/pkg/app
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 Fix preapply hooks are not called on no diff when run apply subcommand (#522) 2022-12-10 12:07:26 +09:00
version feat: optimize version output (#412) 2022-10-08 14:26:15 +09:00
app.go Fix preapply hooks are not called on no diff when run apply subcommand (#522) 2022-12-10 12:07:26 +09:00
app_apply_hooks_test.go Use log capturing helper in TestApply_hooks 2022-11-13 08:20:13 +00:00
app_apply_nokubectx_test.go Use log capturing helper in TestApply_hooks 2022-11-13 08:20:13 +00:00
app_apply_test.go Use the new log capturing helper in all tests 2022-11-13 08:53:53 +00:00
app_diff_test.go Use the new log capturing helper in all tests 2022-11-13 08:53:53 +00:00
app_lint_test.go Use the new log capturing helper in all tests 2022-11-13 08:53:53 +00:00
app_list_test.go Use the new log capturing helper in all tests 2022-11-13 08:53:53 +00:00
app_sync_test.go Use the new log capturing helper in all tests 2022-11-13 08:53:53 +00:00
app_template_test.go Use the new log capturing helper in all tests 2022-11-13 08:53:53 +00:00
app_test.go Avoid --skip-refresh on local charts (#541) 2022-12-12 16:43:10 +09:00
ask.go feat: helmfile as a go library (#639) 2019-06-04 09:12:00 +09:00
config.go Add --output-dir-template flag to the fetch command (#456) 2022-11-05 18:55:02 +08:00
constants.go Introduce DISABLE_INSECURE_FEATURES to disable insecure command executions (#1) 2022-06-05 15:15:06 +09:00
constants_test.go fix lint error 2022-08-13 07:40:32 +08:00
context.go Rename module to github.com/helmfile/helmfile 2022-05-18 10:05:07 -04:00
desired_state_file_loader.go Add the ability to specify a lock file (#432) 2022-11-12 08:59:56 +09:00
destroy_nokubectx_test.go Use the new log capturing helper in all tests 2022-11-13 08:53:53 +00:00
destroy_test.go Use the new log capturing helper in all tests 2022-11-13 08:53:53 +00:00
diff_nokubectx_test.go Use the new log capturing helper in all tests 2022-11-13 08:53:53 +00:00
diff_test.go Use the new log capturing helper in all tests 2022-11-13 08:53:53 +00:00
errors.go feat: Opt-out dep-builds and repo-updates (#463) 2019-02-04 12:07:25 +09:00
errors_test.go add unittest for error.go in pkg/app 2022-04-28 09:01:02 +08:00
formatters.go Correct enabled property in helmfile list (#1921) 2022-01-10 17:24:07 +09:00
formatters_test.go add Go lint 2022-07-16 20:21:11 +08:00
init.go bump: helm to 3.10.2 2022-11-11 13:54:35 +08:00
init_test.go Add subcommand init for checks and installs helmfile deps (#389) 2022-11-03 14:51:30 +08:00
load_opts.go bump: upgrade gopkg.in/yaml.v2 to gopkg.in/yaml.v3 2022-10-03 05:24:51 +08:00
load_opts_test.go add Go lint 2022-07-16 20:21:11 +08:00
mocks_test.go Avoid --skip-refresh on local charts (#541) 2022-12-12 16:43:10 +09:00
run.go fix: helmfile template fails when selector matches a chart fetched with go-getter 2022-11-13 15:10:57 +08:00
snapshot_test.go Use log capturing helper in TestApply_hooks 2022-11-13 08:20:13 +00:00
two_pass_renderer.go Introduce Helmfile's own filesystem abstraction to correctly unit test some components (#307) 2022-08-24 12:58:43 +09:00
two_pass_renderer_test.go Prevent excessive log in tests 2022-10-11 06:19:32 +09:00
validate_config.go add Go lint 2022-07-16 20:21:11 +08:00
validate_config_test.go add unittest for ValidateConfig 2022-04-27 07:38:22 +08:00