Mahmood Ali
fcddfa4971
Update hcl2 vendoring
...
The hcl2 library has moved from http://github.com/hashicorp/hcl2 to https://github.com/hashicorp/hcl/tree/hcl2 .
This updates Nomad's vendoring to start using hcl2 library. Also
updates some related libraries (e.g. `github.com/zclconf/go-cty/cty` and
`github.com/apparentlymart/go-textseg`).
2020-05-19 15:00:03 -04:00
Nick Ethier
ac239a3f0b
docker: set default cpu cfs period ( #6737 )
...
* docker: set default cpu cfs period
Co-Authored-By: Michael Schurter <mschurter@hashicorp.com >
2019-11-19 19:05:15 -05:00
Jasmine Dahilig
e31db578e0
add formatting for hcl parsing error messages ( #5972 )
2019-07-19 10:04:39 -07:00
Mahmood Ali
95adf6127c
Add a test for unknown variables
2019-06-17 12:25:43 -04:00
Mahmood Ali
32623ce3ee
Support driver config fields being set to nil ( #5391 )
...
To pick up https://github.com/hashicorp/hcl2/pull/90
2019-03-05 21:47:06 -05:00
Mahmood Ali
941f89e0fe
tests: add hcl task driver config parsing tests ( #5314 )
...
* drivers: add config parsing tests
Add basic tests for parsing and encoding task config.
* drivers/docker: fix some config declarations
* refactor and document config parse helpers
2019-02-12 14:46:37 -05:00
Michael Schurter
5a8d955236
docker: fix logging config parsing
...
Fixes
https://groups.google.com/d/topic/nomad-tool/B3Uo6Kns2BI/discussion
2019-02-04 11:07:57 -08:00
Michael Schurter
08864d5ea5
plugins: update hclutils test
...
The test used old local copies of Docker structs and appeared to be
testing an outdated approach to task config decoding.
Updated to use real Docker structs so we can do end-to-end unit testing
of real Docker task configs.
2019-02-04 11:07:57 -08:00
Michael Schurter
0d61ff0fb9
move pluginutils -> helper/pluginutils
...
I wanted a different color bikeshed, so I get to paint it
2019-01-22 15:50:08 -08:00