open-nomad/vendor/github.com/hashicorp/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 deps: Switch to Go modules for dependency management 2020-06-02 14:30:36 -05:00
acl.go deps: Switch to Go modules for dependency management 2020-06-02 14:30:36 -05:00
agent.go api: nomad debug new /agent/host (#8325) 2020-07-02 09:51:25 -04:00
allocations.go api: target servers for allocation requests (#8897) 2020-09-16 09:34:17 -04:00
api.go Add API support for cancelation contexts passed via QueryOptions and WriteOptions (#8836) 2020-09-09 16:22:07 -04:00
constraint.go deps: Switch to Go modules for dependency management 2020-06-02 14:30:36 -05:00
csi.go csi: nomad volume detach command (#8584) 2020-08-11 10:18:54 -04:00
deployments.go multiregion CLI: nomad deployment unblock 2020-06-17 11:03:44 -04:00
evaluations.go deps: Switch to Go modules for dependency management 2020-06-02 14:30:36 -05:00
fs.go deps: Switch to Go modules for dependency management 2020-06-02 14:30:36 -05:00
go.mod deps: Switch to Go modules for dependency management 2020-06-02 14:30:36 -05:00
go.sum deps: Switch to Go modules for dependency management 2020-06-02 14:30:36 -05:00
ioutil.go deps: Switch to Go modules for dependency management 2020-06-02 14:30:36 -05:00
jobs.go MRD: move 'job stop -global' handling into RPC (#8776) 2020-08-28 14:28:13 -04:00
namespace.go deps: Switch to Go modules for dependency management 2020-06-02 14:30:36 -05: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
operator.go allow raw body instead of JSON encoded string (#8211) 2020-06-19 10:57:09 -04:00
operator_autopilot.go deps: Switch to Go modules for dependency management 2020-06-02 14:30:36 -05:00
quota.go deps: Switch to Go modules for dependency management 2020-06-02 14:30:36 -05:00
raw.go deps: Switch to Go modules for dependency management 2020-06-02 14:30:36 -05:00
regions.go deps: Switch to Go modules for dependency management 2020-06-02 14:30:36 -05:00
resources.go vendor: sync api changes 2020-06-19 11:31:39 -04:00
scaling.go deps: upgrade import of consul/api 2020-08-06 21:02:33 -05:00
search.go deps: Switch to Go modules for dependency management 2020-06-02 14:30:36 -05:00
sentinel.go deps: Switch to Go modules for dependency management 2020-06-02 14:30:36 -05:00
services.go consul/connect: remove envoy dns option from gateway proxy config 2020-08-24 09:11:55 -05:00
status.go deps: Switch to Go modules for dependency management 2020-06-02 14:30:36 -05:00
system.go deps: Switch to Go modules for dependency management 2020-06-02 14:30:36 -05:00
tasks.go run make vendor 2020-09-01 11:48:47 -04:00
utils.go deps: Switch to Go modules for dependency management 2020-06-02 14:30:36 -05:00