df2dc48790
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. |
||
---|---|---|
.. | ||
README.md | ||
autopilot.go | ||
autopilot_test.go | ||
consul.go | ||
consul_test.go | ||
plugins.go | ||
plugins_test.go | ||
sentinel.go | ||
tls.go | ||
tls_test.go | ||
vault.go | ||
vault_test.go |
README.md
Overview
nomad/structs/config
is a package for configuration struct
s 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).