helmfile/pkg/app
KUOKA Yusuke 1226ea6d1a
feat: specify env values from the parent to the nested state (#622)
* feat: specify env values from the parent to the nested state

Adds the `helmfiles[].environment.values` that accepts a mix of file pathes and inline dictes:

```yaml
helmfiles:
- path: path/to/nested/helmfile.yaml
  environment:
    values:
    - key1: val1
    - values.yaml
```

The values files are loaded in the context of the parent state file. For example, in case the above state file is located at `/path/to/helmfile.yaml`,
`values.yaml` is located at `/path/to/values.yaml` instead of `/path/to/nested/values.yaml`.

Resolves #523

* fix: multiple "bases" declarations yields duplicate releases

Fixes #615

* fix regression in double-rendering with env value overrides

The latest commit broke any state files like the below to NOT pass env value overrides at all:

```
helmfiles:
- path: nested/state.yaml
  environment:
    values:
    - overrides.yaml
```

This fixes the issue.
2019-05-29 19:08:51 +09:00
..
app.go feat: specify env values from the parent to the nested state (#622) 2019-05-29 19:08:51 +09:00
app_test.go feat: specify env values from the parent to the nested state (#622) 2019-05-29 19:08:51 +09:00
constants.go feat: "bases" for easier layerina 2019-05-13 21:48:00 +09:00
constants_test.go Various U/X improvements for `helmfile apply` (#586) 2019-05-12 16:26:11 +09:00
context.go feat: Opt-out dep-builds and repo-updates (#463) 2019-02-04 12:07:25 +09:00
desired_state_file_loader.go feat: specify env values from the parent to the nested state (#622) 2019-05-29 19:08:51 +09:00
errors.go feat: Opt-out dep-builds and repo-updates (#463) 2019-02-04 12:07:25 +09:00
two_pass_renderer.go feat: specify env values from the parent to the nested state (#622) 2019-05-29 19:08:51 +09:00
two_pass_renderer_test.go feat: optionally allow missing environment values/secrets files (#620) 2019-05-28 15:33:45 +09:00