Handle writing of environment params
This commit will add an interface `SetEnvironmentParams` to metadata.Manager that allows setting of env params. Also implements the logic for parsing the jsonnet snippet to append / modify params in simple env param schemas. It will: 1. Update the params if the component exists in the jsonnet snippet. 2. Add the component if it does not exist.
Showing
- metadata/environment.go 31 additions, 0 deletionsmetadata/environment.go
- metadata/interface.go 1 addition, 1 deletionmetadata/interface.go
- metadata/snippet/interface.go 11 additions, 0 deletionsmetadata/snippet/interface.go
- metadata/snippet/params.go 117 additions, 25 deletionsmetadata/snippet/params.go
- metadata/snippet/params_test.go 124 additions, 0 deletionsmetadata/snippet/params_test.go
Please register or sign in to comment