Add interface for retrieving environment params
The goal of this commit is to add an interface to `metadata.Manager` that allows retrieving of all environment params: `getEnvironmentParams(envName)`. This is done by: 1. Adding functionality to the snippet parser to get all environment params out of the snippet read from `environments/<env>/params.libsonnet` 2. Adding functionality to the snippet parser to get all component params out of the snippet read from `components/params.libsonnet` 3. Having the `metadata.Manager` implementation handle the 'joining' of params from 1) and 2), and returning that result.
Showing
- metadata/environment.go 46 additions, 3 deletionsmetadata/environment.go
- metadata/environment_test.go 57 additions, 0 deletionsmetadata/environment_test.go
- metadata/interface.go 11 additions, 5 deletionsmetadata/interface.go
- metadata/manager.go 17 additions, 8 deletionsmetadata/manager.go
- metadata/params/interface.go 27 additions, 5 deletionsmetadata/params/interface.go
- metadata/params/params.go 96 additions, 65 deletionsmetadata/params/params.go
- metadata/params/params_test.go 154 additions, 24 deletionsmetadata/params/params_test.go
Please register or sign in to comment