helmfile/pkg
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
..
app feat: `helm repo add --ca-file` via repositories definition (#856) 2019-09-14 06:23:54 +02:00
argparser fix: helmDefaults.kubeContext ignored in `helm diff` of `helmfile apply` (#682) 2019-06-12 16:49:19 +09:00
environment feat: state values (#647) 2019-06-04 16:34:02 +09:00
event feat: optionally show logs for hooks (#699) 2019-06-19 08:46:32 +09:00
helmexec feat: `helm repo add --ca-file` via repositories definition (#856) 2019-09-14 06:23:54 +02:00
maputil fix: --state-values-set not setting more than first child in nested paths (#774) 2019-07-27 22:57:54 +09:00
remote Fix recursion for helmfiles pulled from git (#854) 2019-09-14 05:49:59 +02:00
state Warn users when no repositories are defined (#879) 2019-09-29 16:11:06 +09:00
testhelper feat: remote state files (#648) 2019-06-04 22:59:54 +09:00
tmpl print yaml content on error in fromYaml (#765) 2019-07-30 10:43:30 +09:00