helmfile/state
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
..
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: specify env values from the parent to the nested state (#622) 2019-05-29 19:08:51 +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: inline environment values (#621) 2019-05-28 16:26:00 +09:00
environment_values_loader.go feat: specify env values from the parent to the nested state (#622) 2019-05-29 19:08:51 +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: specify env values from the parent to the nested state (#622) 2019-05-29 19:08:51 +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: specify env values from the parent to the nested state (#622) 2019-05-29 19:08:51 +09:00
storage.go feat: specify env values from the parent to the nested state (#622) 2019-05-29 19:08:51 +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