open-nomad/nomad/structs/config
James Rasell df2dc48790 Fix error parsing config when setting consul.timeout. (#6907)
When parsing a config file which had the consul.timeout param set,
Nomad was reporting an error causing startup to fail. This seems
to be caused by the HCL decoder interpreting the timeout type as
an int rather than a string. This is caused by the struct
TimeoutHCL param having a hcl key of timeout alongside a Timeout
struct param of type time.Duration (int). Ensuring the decoder
ignores the Timeout struct param ensure the decoder runs
correctly.
2020-01-07 13:40:55 -05:00
..
README.md
autopilot.go config merge maintains *HCL string fields used for duration conversion 2019-06-11 16:34:04 -04:00
autopilot_test.go Refactor redundancy_zone/upgrade_version out of client meta 2018-01-29 20:03:38 -08:00
consul.go Fix error parsing config when setting consul.timeout. (#6907) 2020-01-07 13:40:55 -05:00
consul_test.go consul: use Consul's defaults and env vars 2019-08-27 14:56:52 -07:00
plugins.go tag HCL bookkeeping keys with json:"-" to keep them out of the api 2019-04-30 10:29:14 -04:00
plugins_test.go Plugin config parsing 2018-08-29 17:06:01 -07:00
sentinel.go sync 2017-09-19 10:08:23 -05:00
tls.go tag HCL bookkeeping keys with json:"-" to keep them out of the api 2019-04-30 10:29:14 -04:00
tls_test.go add support for tls PreferServerCipherSuites 2018-05-25 13:20:00 -04:00
vault.go agent/config, config/* mapstructure tags -> hcl tags 2019-04-30 10:29:14 -04:00
vault_test.go fix for dynamically reloading vault 2018-06-07 15:34:18 -04:00

README.md

Overview

nomad/structs/config is a package for configuration structs that are shared among packages that needs the same struct definitions, but can't import each other without creating a cyle. This config package must be terminal in the import graph (or very close to terminal in the dependency graph).