open-nomad/nomad
Michael Schurter e204a287ed Refactor Consul Syncer into new ServiceClient
Fixes #2478 #2474 #1995 #2294

The new client only handles agent and task service advertisement. Server
discovery is mostly unchanged.

The Nomad client agent now handles all Consul operations instead of the
executor handling task related operations. When upgrading from an
earlier version of Nomad existing executors will be told to deregister
from Consul so that the Nomad agent can re-register the task's services
and checks.

Drivers - other than qemu - now support an Exec method for executing
abritrary commands in a task's environment. This is used to implement
script checks.

Interfaces are used extensively to avoid interacting with Consul in
tests that don't assert any Consul related behavior.
2017-04-19 12:42:47 -07:00
..
mock Upsert Job Histories 2017-04-15 17:08:05 -07:00
state Respond to review comments 2017-04-19 10:54:03 -07:00
structs Respond to review comments 2017-04-19 10:54:03 -07:00
types Change the signature of the PeriodicCallback to return an error 2016-06-10 15:54:39 -04:00
alloc_endpoint.go Nomad builds 2017-02-07 20:31:23 -08:00
alloc_endpoint_test.go Fix nomad tests 2017-02-07 22:10:33 -08:00
blocked_evals.go Cancel blocked evals upon successful one for job 2017-01-04 16:16:04 -08:00
blocked_evals_test.go Cancel blocked evals upon successful one for job 2017-01-04 16:16:04 -08:00
config.go Push to configs 2017-04-14 15:24:55 -07:00
core_sched.go GC and some fixes 2017-04-15 17:08:05 -07:00
core_sched_test.go GC and some fixes 2017-04-15 17:08:05 -07:00
eval_broker.go NewEvalBroker comment 2017-04-14 15:26:54 -07:00
eval_broker_test.go Push to configs 2017-04-14 15:24:55 -07:00
eval_endpoint.go Nomad builds 2017-02-07 20:31:23 -08:00
eval_endpoint_test.go Diff code fixes 2017-04-16 16:54:40 -07:00
fsm.go non-purge deregisters 2017-04-15 17:08:05 -07:00
fsm_test.go non-purge deregisters 2017-04-15 17:08:05 -07:00
heartbeat.go Nomad builds 2017-02-07 20:31:23 -08:00
heartbeat_test.go Merge pull request #2282 from hashicorp/f-raft-v2-stage-one 2017-02-08 15:26:16 -08:00
job_endpoint.go GC and some fixes 2017-04-15 17:08:05 -07:00
job_endpoint_test.go GC and some fixes 2017-04-15 17:08:05 -07:00
leader.go Push to configs 2017-04-14 15:24:55 -07:00
leader_test.go Push to configs 2017-04-14 15:24:55 -07:00
merge.go nomad: adding merge guard for non-nomad servers 2015-06-04 13:15:46 +02:00
node_endpoint.go Fix error checking 2017-03-29 13:59:43 -07:00
node_endpoint_test.go Recoverable struct field must be exported 2017-03-28 12:18:57 -07:00
operator_endpoint.go Operator command/endpoint/documentation 2017-02-09 18:04:46 -08:00
operator_endpoint_test.go Operator command/endpoint/documentation 2017-02-09 18:04:46 -08:00
periodic.go Handle periodic paramaterized jobs 2017-03-01 11:45:20 -08:00
periodic_endpoint.go Nomad builds 2017-02-07 20:31:23 -08:00
periodic_endpoint_test.go Tests compile 2017-02-07 21:30:57 -08:00
periodic_test.go Handle periodic paramaterized jobs 2017-03-01 11:45:20 -08:00
plan_apply.go Fix a panic during plan evaluation 2017-04-10 14:56:21 -07:00
plan_apply_pool.go nomad: guard against a negative pool size 2016-02-20 15:56:08 -08:00
plan_apply_pool_test.go nomad: Adding Size to EvaluatePool 2016-02-20 13:42:13 -08:00
plan_apply_test.go Tests compile 2017-02-07 21:30:57 -08:00
plan_endpoint.go core: Pause NackTimeout while in the plan_queue as progress is being made 2016-03-04 12:59:35 -08:00
plan_endpoint_test.go eval_broker.Enqueue no longer returns an error 2016-05-18 11:35:15 -07:00
plan_queue.go nomad: cleanup stats goroutines 2015-08-05 16:45:50 -07:00
plan_queue_test.go Fix test to tolerate multiple pending plans with the same time stamp. 2015-12-03 10:52:53 -05:00
pool.go Remove dead code 2017-03-03 18:27:49 -08:00
raft_rpc.go Join + Leave peer 2017-02-02 15:49:06 -08:00
regions_endpoint.go nomad: leader forwarding not needed for regions 2015-11-23 22:27:07 -08:00
regions_endpoint_test.go nomad: testing region list 2015-11-23 22:27:07 -08:00
rpc.go Require TLS for server RPC when enabled 2017-04-06 09:34:36 -07:00
rpc_test.go nomad: modify forward RPC to hold when no known leader 2016-07-10 13:36:55 -04:00
serf.go Handle Serf Reap event 2017-02-13 14:22:54 -08:00
serf_test.go Handle Serf Reap event 2017-02-13 14:22:54 -08:00
server.go Refactor Consul Syncer into new ServiceClient 2017-04-19 12:42:47 -07:00
server_test.go Refactor Consul Syncer into new ServiceClient 2017-04-19 12:42:47 -07:00
status_endpoint.go Respond to comments 2017-02-08 14:50:19 -08:00
status_endpoint_test.go Reconcile, clean up, and centralize API version numbers (major and minor). 2016-06-10 15:50:11 -04:00
system_endpoint.go Making servers reconcile job summaries when they acquire leadership 2016-08-05 16:47:36 -07:00
system_endpoint_test.go GC and some fixes 2017-04-15 17:08:05 -07:00
timetable.go Switch to using go/codec and use code generation 2016-02-20 18:05:17 -08:00
timetable_test.go Switch to using go/codec and use code generation 2016-02-20 18:05:17 -08:00
util.go Reconcile, clean up, and centralize API version numbers (major and minor). 2016-06-10 15:50:11 -04:00
util_test.go Reconcile, clean up, and centralize API version numbers (major and minor). 2016-06-10 15:50:11 -04:00
vault.go remove leading slash on vault path 2017-02-28 14:03:18 -08:00
vault_test.go Recoverable struct field must be exported 2017-03-28 12:18:57 -07:00
vault_testing.go Add server metrics 2017-02-14 16:02:18 -08:00
worker.go Nomad builds 2017-02-07 20:31:23 -08:00
worker_test.go Tests compile 2017-02-07 21:30:57 -08:00