consul/agent/config
Frank Schröder 874e350b2f config: add -config-format option (#3626)
* config: refactor ReadPath(s) methods without side-effects

Return the sources instead of modifying the state.

* config: clean data dir before every test

* config: add tests for config-file and config-dir

* config: add -config-format option

Starting with Consul 1.0 all config files must have a '.json' or '.hcl'
extension to make it unambigous how the data should be parsed. Some
automation tools generate temporary files by appending a random string
to the generated file which obfuscates the extension and prevents the
file type detection.

This patch adds a -config-format option which can be used to override
the auto-detection behavior by forcing all config files or all files
within a config directory independent of their extension to be
interpreted as of this format.

Fixes #3620
2017-10-31 17:30:01 -05:00
..
builder.go config: add -config-format option (#3626) 2017-10-31 17:30:01 -05:00
config.go config: add -config-format option (#3626) 2017-10-31 17:30:01 -05:00
default.go Makes RPC handling more robust when rolling servers. (#3561) 2017-10-10 15:19:50 -07:00
doc.go Metrics service prefix (#3498) 2017-09-26 17:49:55 -07:00
flags.go config: add -config-format option (#3626) 2017-10-31 17:30:01 -05:00
flags_test.go config: return error on extra command line arguments (#3397) 2017-10-23 08:07:48 +02:00
flagset.go New config parser, HCL support, multiple bind addrs (#3480) 2017-09-25 11:40:42 -07:00
merge.go New config parser, HCL support, multiple bind addrs (#3480) 2017-09-25 11:40:42 -07:00
merge_test.go New config parser, HCL support, multiple bind addrs (#3480) 2017-09-25 11:40:42 -07:00
patch_hcl.go New config parser, HCL support, multiple bind addrs (#3480) 2017-09-25 11:40:42 -07:00
patch_hcl_test.go New config parser, HCL support, multiple bind addrs (#3480) 2017-09-25 11:40:42 -07:00
runtime.go config: address review comments 2017-10-23 08:06:26 +02:00
runtime_test.go config: add -config-format option (#3626) 2017-10-31 17:30:01 -05:00
segments_oss.go New config parser, HCL support, multiple bind addrs (#3480) 2017-09-25 11:40:42 -07:00
segments_oss_test.go config: rename test struct field to args 2017-10-23 08:07:48 +02:00
translate.go config: add generic method to translate between CamelCase and snake_case (#3557) 2017-10-10 16:40:59 -07:00
translate_test.go config: add generic method to translate between CamelCase and snake_case (#3557) 2017-10-10 16:40:59 -07:00