open-nomad/api
Mahmood Ali f5700611c0
api: target servers for allocation requests (#8897)
Allocation requests should target servers, which then can forward the
request to the appropriate clients.

Contacting clients directly is fragile and prune to failures: e.g.
clients maybe firewalled and not accessible from the API client, or have
some internal certificates not trusted by the API client.

FWIW, in contexts where we anticipate lots of traffic (e.g. logs, or
exec), the api package attempts contacting the client directly but then
fallsback to using the server. This approach seems excessive in these
simple GET/PUT requests.

Fixes #8894
2020-09-16 09:34:17 -04:00
..
contexts
internal/testutil tests: allow API test server to respect NOMAD_TEST_LOG_LEVEL (#8760) 2020-08-27 14:36:17 -04:00
acl.go
acl_test.go
agent.go api: `nomad debug` new /agent/host (#8325) 2020-07-02 09:51:25 -04:00
agent_test.go
allocations.go api: target servers for allocation requests (#8897) 2020-09-16 09:34:17 -04:00
allocations_test.go
api.go Add API support for cancelation contexts passed via QueryOptions and WriteOptions (#8836) 2020-09-09 16:22:07 -04:00
api_test.go Add API support for cancelation contexts passed via QueryOptions and WriteOptions (#8836) 2020-09-09 16:22:07 -04:00
compose_test.go test: fix up testing around host networks 2020-06-19 13:53:31 -04:00
constraint.go
constraint_test.go
csi.go csi: nomad volume detach command (#8584) 2020-08-11 10:18:54 -04:00
csi_test.go csi: add -force flag to volume deregister (#8295) 2020-07-01 12:17:51 -04:00
deployments.go multiregion CLI: nomad deployment unblock 2020-06-17 11:03:44 -04:00
evaluations.go
evaluations_test.go
fs.go
fs_test.go
go.mod
go.sum
ioutil.go Add api/ package function to save snapshot 2020-05-21 20:04:38 -04:00
ioutil_test.go Add api/ package function to save snapshot 2020-05-21 20:04:38 -04:00
jobs.go MRD: move 'job stop -global' handling into RPC (#8776) 2020-08-28 14:28:13 -04:00
jobs_test.go Merge pull request #8453 from hashicorp/oss-multi-vault-ns 2020-07-27 08:45:22 -04:00
namespace.go
namespace_test.go Fix pro tags 2020-07-17 11:02:00 -04:00
nodes.go csi: plugins track jobs in addition to allocations, and use job information to set expected counts (#8699) 2020-08-27 17:20:00 -04:00
nodes_test.go api: add node purge SDK function. 2020-08-14 08:40:03 +01:00
operator.go allow raw body instead of JSON encoded string (#8211) 2020-06-19 10:57:09 -04:00
operator_autopilot.go
operator_test.go
quota.go
quota_test.go
raw.go
regions.go
regions_test.go
resources.go multi-interface network support 2020-06-19 09:42:10 -04:00
scaling.go api: add namespace to scaling status GET response object. 2020-07-24 11:19:25 +02:00
scaling_test.go fixed api tests for changes 2020-07-04 19:23:58 +00:00
search.go
search_test.go
sentinel.go
sentinel_test.go Fix pro tags 2020-07-17 11:02:00 -04:00
services.go consul/connect: remove envoy dns option from gateway proxy config 2020-08-24 09:11:55 -05:00
services_test.go consul/connect: remove envoy dns option from gateway proxy config 2020-08-24 09:11:55 -05:00
status.go
status_test.go
system.go
system_test.go
tasks.go Merge pull request #8390 from hashicorp/lifecycle-poststart-hook 2020-08-31 13:53:24 -07:00
tasks_test.go fixed api tests for changes 2020-07-04 19:23:58 +00:00
util_test.go fixed api tests for changes 2020-07-04 19:23:58 +00:00
utils.go
utils_test.go