helmfile/state
KUOKA Yusuke a896f801ab
feat: optionally allow missing environment values/secrets files (#620)
```yaml
environments:
  default:
    missingFileHandler: Warn
    values:
    - path/to/values.yaml
    secrets:
    - path/to/secrets.yaml
```

`missingFileHandler` set to `Warn`, `Info`, or `Debug` results in helmfile NOT stop when `path/to/values.yaml` or `path/to/secrets.yaml` is missing.

Resolves #548

While implementing the above feature, I also found a bug that has been causing #559. This also fixes that.

To verify it is actually fixed, create an example helmfile.yaml that looks like the below, and run `helmfile diff`:

```
$ cat helmfile.yaml
environments:
  default:
    secrets:
      - env-secrets.yaml

releases:
  - name: myapp
    chart: nginx
    namespace: default
    secrets: [secrets.yaml]    # Notice this file does not exist
    values:
      - ingress:
          enabled: true

$ helmfile diff
could not deduce `environment:` block, configuring only .Environment.Name. error: failed to read helmfile.yaml.part.0: environment values file matching "env-secrets.yaml" does not exist
in ./helmfile.yaml: failed to read helmfile.yaml: environment values file matching "env-secrets.yaml" does not exist
```

Fixes #559
2019-05-28 15:33:45 +09:00
..
chart_dependency.go feat: support for locking the same chart for two or more versions (#600) 2019-05-16 21:19:30 +09:00
create.go feat: optionally allow missing environment values/secrets files (#620) 2019-05-28 15:33:45 +09:00
create_test.go feat: optionally allow missing environment values/secrets files (#620) 2019-05-28 15:33:45 +09:00
environment.go feat: optionally allow missing environment values/secrets files (#620) 2019-05-28 15:33:45 +09:00
release.go fix: `helmfile diff` should not leave temp values files (#525) 2019-04-01 22:24:18 +09:00
release_error.go Various U/X improvements for `helmfile apply` (#586) 2019-05-12 16:26:11 +09:00
release_filters.go fix: prevent panicing on invalid selector format (#323) 2018-09-09 17:20:44 +09:00
state.go feat: optionally allow missing environment values/secrets files (#620) 2019-05-28 15:33:45 +09:00
state_exec_tmpl.go feat: Release Template (#439) 2019-01-22 01:19:07 +09:00
state_exec_tmpl_test.go fix scopelint errors / possible races in hooks (#614) 2019-05-22 18:50:38 +09:00
state_run.go Simple implementation of the tillerless mode (#531) 2019-04-05 19:02:37 +09:00
state_test.go feat: optionally allow missing environment values/secrets files (#620) 2019-05-28 15:33:45 +09:00
testfs.go fix: do not complain on missing values files for undesired release (#617) 2019-05-24 21:40:34 +09:00
types.go feat: Release Template (#439) 2019-01-22 01:19:07 +09:00