helmfile/pkg/state
Aaron Batilo 921f69bae7 Warn users when no repositories are defined (#879)
At the moment, if you have a helmfile.yaml like so:
```
releases:
  - name: metrics-server
    namespace: kube-system
    chart: stable/metrics-server
```

If you try to run `helmfile deps`, you will get a 0 exit code and no log
output at whatsoever, signaling that there weren't any problems, but no
lock file will get created.

For example:
```
root@316073d4a104:/# helmfile deps
root@316073d4a104:/#
```
This behavior doesn't appear to be documented and is unintuitive to the
user.

This change adds a warning output for this same use case:
```
root@316073d4a104:/# helmfile deps
There are no repositories defined in your helmfile.yaml.
This means helmfile cannot update your dependencies or create a lock file.
See https://github.com/roboll/helmfile/issues/878 for more information.
root@316073d4a104:/#
```

Fixes #878
2019-09-29 16:11:06 +09:00
..
chart_dependency.go Warn users when no repositories are defined (#879) 2019-09-29 16:11:06 +09:00
create.go Share helmexec from State Creation (#804) 2019-08-15 09:27:55 +09:00
create_test.go Share helmexec from State Creation (#804) 2019-08-15 09:27:55 +09:00
environment.go feat: Advanced Templating (#823) 2019-08-31 14:31:31 +09:00
envvals_loader.go feat: When values.yaml.gotmpl can't be parsed as YAML, print the YAML. (#703) 2019-06-19 08:47:36 +09:00
helmx.go feat: Adopt existing K8s resources as Helm release on install (#746) 2019-07-11 09:13:34 +09:00
release.go Make advanced templating backward-compatible (#833) 2019-08-31 22:37:46 +09:00
release_error.go chore: tidy up pkgs (#636) 2019-06-01 13:36:05 +09:00
release_filters.go chore: tidy up pkgs (#636) 2019-06-01 13:36:05 +09:00
state.go fix: invalid duration passed to helm 3 upgrade (#864) 2019-09-19 08:30:29 +09:00
state_exec_tmpl.go feat: Advanced Templating (#823) 2019-08-31 14:31:31 +09:00
state_exec_tmpl_test.go Make advanced templating backward-compatible (#833) 2019-08-31 22:37:46 +09:00
state_run.go Base concurrency on items parameter (#798) 2019-08-08 10:20:05 +09:00
state_test.go feat: `helm repo add --ca-file` via repositories definition (#856) 2019-09-14 06:23:54 +02:00
storage.go chore: tidy up pkgs (#636) 2019-06-01 13:36:05 +09:00
types.go feat: state values (#647) 2019-06-04 16:34:02 +09:00
util.go fix: absolute chart path (#753) 2019-07-12 22:37:54 +09:00
util_test.go fix: absolute chart path (#753) 2019-07-12 22:37:54 +09:00