Implement variable overlay with dotted paths
If an overlay variable has a dotted name, it is used as a path to patch a nested value in the original variable. For instance, given the following original variables: variables: d: a: value b: other A config overlay can change the 'a' value without touching the other 'd' attributes : variables: d.a: new value The resulting variables would be : variables: d: a: new value b: other
parent
80cefe17f4bb
No related branches found
No related tags found
Checking pipeline status
Showing
- runner/config.go 1 addition, 18 deletionsrunner/config.go
- runner/config_test.go 16 additions, 0 deletionsrunner/config_test.go
- runner/fixtures/f1/base/beaver.yml 5 additions, 1 deletionrunner/fixtures/f1/base/beaver.yml
- runner/fixtures/f1/environments/ns1/beaver.yml 2 additions, 0 deletionsrunner/fixtures/f1/environments/ns1/beaver.yml
- runner/variables.go 90 additions, 1 deletionrunner/variables.go
- runner/variables_test.go 42 additions, 0 deletionsrunner/variables_test.go
Loading
Please register or sign in to comment