consul/agent
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
..
ae ae: do not trigger on Resume while holding the lock 2017-10-23 10:56:05 +02:00
checks docker: fix failing test 2017-10-31 09:26:34 +01:00
config config: add -config-format option (#3626) 2017-10-31 17:30:01 -05:00
consul Relaxes Autopilot promotion logic. (#3623) 2017-10-31 15:16:56 -05:00
exec fix go vet issue 2017-10-25 19:30:35 +02:00
local local state: fix go vet issue 2017-10-23 10:56:05 +02:00
metadata
mock
pool Makes RPC handling more robust when rolling servers. (#3561) 2017-10-10 15:19:50 -07:00
router Add segment addr field to tags for LAN flood joiner 2017-08-30 11:58:29 -07:00
structs Fixes agent error handling when check definition is invalid. Distingu… (#3560) 2017-10-10 16:54:06 -07:00
systemd
token
acl.go local state: tests compile 2017-10-23 10:56:03 +02:00
acl_endpoint.go agent: consolidate handling of 405 Method Not Allowed (#3405) 2017-09-25 23:11:19 -07:00
acl_endpoint_test.go agent: consolidate handling of 405 Method Not Allowed (#3405) 2017-09-25 23:11:19 -07:00
acl_test.go local state: tests compile 2017-10-23 10:56:03 +02:00
agent.go docker: stop previous check on replace 2017-10-26 12:03:07 +02:00
agent_endpoint.go Decouple the code that executes checks from the agent 2017-10-25 11:18:07 +02:00
agent_endpoint_test.go Decouple the code that executes checks from the agent 2017-10-25 11:18:07 +02:00
agent_test.go Decouple the code that executes checks from the agent 2017-10-25 11:18:07 +02:00
bindata_assetfs.go Fixes an XSS issue with unescaped node names. (#3578) 2017-10-16 09:12:36 -07:00
blacklist.go
blacklist_test.go
catalog_endpoint.go agent: consolidate handling of 405 Method Not Allowed (#3405) 2017-09-25 23:11:19 -07:00
catalog_endpoint_test.go local state: address review comments 2017-10-23 10:56:04 +02:00
check.go Decouple the code that executes checks from the agent 2017-10-25 11:18:07 +02:00
config.go Fixes API client for ScriptArgs and updates documentation. (#3589) 2017-10-18 11:28:39 -07:00
coordinate_endpoint.go agent: consolidate handling of 405 Method Not Allowed (#3405) 2017-09-25 23:11:19 -07:00
coordinate_endpoint_test.go
dns.go dns: return NXDOMAIN if datacenter is invalid (#3200) (#3596) 2017-10-20 16:49:17 -07:00
dns_test.go dns: return NXDOMAIN if datacenter is invalid (#3200) (#3596) 2017-10-20 16:49:17 -07:00
event_endpoint.go agent: consolidate handling of 405 Method Not Allowed (#3405) 2017-09-25 23:11:19 -07:00
event_endpoint_test.go
health_endpoint.go agent: consolidate handling of 405 Method Not Allowed (#3405) 2017-09-25 23:11:19 -07:00
health_endpoint_test.go
http.go Replace time.Now().Sub(x) with time.Since(x) 2017-10-17 20:38:24 +02:00
http_test.go Renames `enable_ui` to `ui` to keep compatibility with existing configs. 2017-09-26 00:05:55 -07:00
keyring.go
keyring_test.go
kvs_endpoint.go
kvs_endpoint_test.go
notify.go
notify_test.go
operator_endpoint.go agent: consolidate handling of 405 Method Not Allowed (#3405) 2017-09-25 23:11:19 -07:00
operator_endpoint_test.go
prepared_query_endpoint.go agent: consolidate handling of 405 Method Not Allowed (#3405) 2017-09-25 23:11:19 -07:00
prepared_query_endpoint_test.go agent: consolidate handling of 405 Method Not Allowed (#3405) 2017-09-25 23:11:19 -07:00
remote_exec.go Decouple the code that executes checks from the agent 2017-10-25 11:18:07 +02:00
remote_exec_test.go Replace time.Now().Sub(x) with time.Since(x) 2017-10-17 20:38:24 +02:00
retry_join.go
retry_join_test.go vendor: update go-discover (#3634) 2017-10-31 17:03:54 -05:00
session_endpoint.go agent: consolidate handling of 405 Method Not Allowed (#3405) 2017-09-25 23:11:19 -07:00
session_endpoint_test.go
snapshot_endpoint.go agent: consolidate handling of 405 Method Not Allowed (#3405) 2017-09-25 23:11:19 -07:00
snapshot_endpoint_test.go agent: consolidate handling of 405 Method Not Allowed (#3405) 2017-09-25 23:11:19 -07:00
status_endpoint.go agent: consolidate handling of 405 Method Not Allowed (#3405) 2017-09-25 23:11:19 -07:00
status_endpoint_test.go agent: consolidate handling of 405 Method Not Allowed (#3405) 2017-09-25 23:11:19 -07:00
testagent.go replace custom unique id with a UUID 2017-10-25 19:30:35 +02:00
testagent_test.go
translate_addr.go
txn_endpoint.go agent: consolidate handling of 405 Method Not Allowed (#3405) 2017-09-25 23:11:19 -07:00
txn_endpoint_test.go agent: consolidate handling of 405 Method Not Allowed (#3405) 2017-09-25 23:11:19 -07:00
ui_endpoint.go agent: consolidate handling of 405 Method Not Allowed (#3405) 2017-09-25 23:11:19 -07:00
ui_endpoint_test.go
user_event.go local state: tests compile 2017-10-23 10:56:03 +02:00
user_event_test.go local state: tests compile 2017-10-23 10:56:03 +02:00
util.go Decouple the code that executes checks from the agent 2017-10-25 11:18:07 +02:00
util_test.go agent: decouple anti-entropy from local state 2017-10-23 10:56:03 +02:00
watch_handler.go Decouple the code that executes checks from the agent 2017-10-25 11:18:07 +02:00
watch_handler_test.go Cleans up import sorting. 2017-10-21 20:08:11 -07:00