open-nomad/api
Michael Schurter ee3eddbac3 drain: block cli until all allocs stop
Before the drain CLI would block until the node was marked as completing
drain operations. While technically correct, it could lead operators (or
more likely: scripts) to shutdown drained nodes before all of its
allocations had *actually* terminated.

This change makes the CLI block until all allocations have terminated
(unless ignoring system jobs).
2018-03-29 10:56:09 -07:00
..
contexts sync 2017-10-13 14:36:02 -07:00
acl.go Self token lookup 2017-10-13 13:12:20 -07:00
acl_test.go Self token lookup 2017-10-13 13:12:20 -07:00
agent.go spelling: unmarshal 2018-03-11 19:07:44 +00:00
agent_test.go non-Existent -> nonexistent 2018-03-12 11:59:33 -07:00
allocations.go Add DesiredTransition.ShouldMigrate to api pkg 2018-03-21 16:51:45 -07:00
allocations_test.go Add DesiredTransition.ShouldMigrate to api pkg 2018-03-21 16:51:45 -07:00
api.go spelling: configurations 2018-03-11 17:47:24 +00:00
api_test.go Enhance API pkg to utilize Server's Client Tunnel 2018-02-15 13:59:03 -08:00
compose_test.go Enable more linters 2017-09-26 15:26:33 -07:00
constraint.go
constraint_test.go Parallel 2017-07-21 16:33:04 -07:00
deployments.go Sync namespace changes 2017-09-07 17:04:21 -07:00
evaluations.go Rename DelayCeiling to MaxDelay 2018-03-14 16:10:32 -05:00
evaluations_test.go non-Existent -> nonexistent 2018-03-12 11:59:33 -07:00
fs.go Enhance API pkg to utilize Server's Client Tunnel 2018-02-15 13:59:03 -08:00
fs_test.go handle errors when streaming logs 2017-09-19 10:37:49 -05:00
jobs.go Correct defaulting 2018-03-21 16:51:44 -07:00
jobs_test.go test: index no longer guaranteed on job list 2018-03-21 16:55:22 -07:00
jobs_testing.go Remove `structs` import from `api` 2017-09-29 10:36:08 -07:00
namespace.go sync 2017-10-13 14:36:02 -07:00
namespace_test.go sync 2017-09-19 10:08:23 -05:00
nodes.go drain: block cli until all allocs stop 2018-03-29 10:56:09 -07:00
nodes_test.go drain: block cli until all allocs stop 2018-03-29 10:56:09 -07:00
operator.go spelling: configuration 2018-03-11 17:48:04 +00:00
operator_autopilot.go Clean up some leftover autopilot differences from Consul 2018-02-08 10:27:26 -08:00
operator_autopilot_test.go Remove fake advertise address and fix TestAPI_OperatorAutopilotServerHealth 2018-03-19 15:49:12 -07:00
operator_test.go Add raft remove by id endpoint/command 2018-01-16 13:35:32 -08:00
quota.go sync 2017-10-13 14:36:02 -07:00
quota_test.go sync 2017-10-13 14:36:02 -07:00
raw.go Making the client use tls if the node from which migration has to be made has enabled tls 2016-10-31 10:20:04 -07:00
regions.go fix a copy/paste error on api.Regions() comment 2017-01-17 22:48:01 -08:00
regions_test.go Parallel 2017-07-21 16:33:04 -07:00
resources.go revert change to increase min. CPU resource value from 20 to 100 2018-01-02 16:09:44 +01:00
search.go Search respects QueryOptions and returns QueryMeta 2017-08-27 22:17:51 -07:00
search_test.go Add new reschedule options to API layer and unit tests 2018-03-14 16:10:32 -05:00
sentinel.go sync 2017-09-19 10:08:23 -05:00
sentinel_test.go sync 2017-09-19 10:08:23 -05:00
status.go display server leaders per region 2016-03-17 16:04:09 -07:00
status_test.go Parallel 2017-07-21 16:33:04 -07:00
system.go Add missing ReconcileSummaries API method 2017-08-24 11:55:10 +02:00
system_test.go Parallel 2017-07-21 16:33:04 -07:00
tasks.go s/linear/constant/g 2018-03-26 14:45:09 -05:00
tasks_test.go s/linear/constant/g 2018-03-26 14:45:09 -05:00
util_test.go test: index no longer guaranteed on job list 2018-03-21 16:55:22 -07:00