open-nomad/api
Tim Gross 1724765096
api: use cleanhttp.DefaultPooledTransport for default API client (#12492)
We expect every Nomad API client to use a single connection to any
given agent, so take advantage of keep-alive by switching the default
transport to `DefaultPooledClient`. Provide a facility to close idle
connections for testing purposes.

Restores the previously reverted #12409


Co-authored-by: Ben Buzbee <bbuzbee@cloudflare.com>
2022-04-06 16:14:53 -04:00
..
contexts api: implement fuzzy search API 2021-04-16 16:36:07 -06:00
internal/testutil ci: use serial testing for api in CI 2022-03-17 08:35:01 -05:00
acl.go HTTP API support for 'nomad ui -login' 2021-03-10 08:17:56 -05:00
acl_test.go ci: use serial testing for api in CI 2022-03-17 08:35:01 -05:00
agent.go Make number of scheduler workers reloadable (#11593) 2022-01-06 11:56:13 -05:00
agent_test.go ci: use serial testing for api in CI 2022-03-17 08:35:01 -05:00
allocations.go api: add service registration HTTP API wrapper. 2022-03-03 12:14:00 +01:00
allocations_exec.go cleanup: prevent leaks from time.After 2022-02-02 14:32:26 -06:00
allocations_test.go Merge branch 'main' into f-1.3-boogie-nights 2022-03-23 09:41:25 +01:00
api.go api: use cleanhttp.DefaultPooledTransport for default API client (#12492) 2022-04-06 16:14:53 -04:00
api_test.go ci: use serial testing for api in CI 2022-03-17 08:35:01 -05:00
compose_test.go ci: use serial testing for api in CI 2022-03-17 08:35:01 -05:00
constraint.go Tag Job spec with HCLv2 tags 2020-10-21 14:05:46 -04:00
constraint_test.go ci: use serial testing for api in CI 2022-03-17 08:35:01 -05:00
consul.go api: move serviceregistration client to servics to match CLI. 2022-03-24 09:08:45 +01:00
consul_test.go api: move serviceregistration client to servics to match CLI. 2022-03-24 09:08:45 +01:00
csi.go CSI: Add secrets flag support for delete volume (#11245) 2022-04-05 08:59:11 -04:00
csi_test.go ci: use serial testing for api in CI 2022-03-17 08:35:01 -05:00
deployments.go multiregion CLI: nomad deployment unblock 2020-06-17 11:03:44 -04:00
evaluations.go api: add related evals to eval details (#12305) 2022-03-17 13:56:14 -04:00
evaluations_test.go Merge pull request #12313 from hashicorp/purge-parallel-2 2022-03-17 13:48:37 -05:00
event_stream.go events: add API helpers for service events stream topics. 2022-04-05 08:26:02 +01:00
event_stream_test.go events: add API helpers for service events stream topics. 2022-04-05 08:26:02 +01:00
fs.go Ensure to close StreamFrame channel (#12248) 2022-03-28 10:28:23 -04:00
fs_test.go raw_exec: fixup review comments 2022-04-05 15:21:28 -05:00
go.mod build(deps): bump github.com/stretchr/testify from 1.7.0 to 1.7.1 (#12306) 2022-03-23 19:12:51 -04:00
go.sum build(deps): bump github.com/stretchr/testify from 1.7.0 to 1.7.1 (#12306) 2022-03-23 19:12:51 -04:00
ioutil.go Add api/ package function to save snapshot 2020-05-21 20:04:38 -04:00
ioutil_test.go ci: use serial testing for api in CI 2022-03-17 08:35:01 -05:00
jobs.go Add unknown to TaskGroupSummary (#12269) 2022-04-05 17:12:23 -04:00
jobs_test.go Merge branch 'main' into f-1.3-boogie-nights 2022-03-23 09:41:25 +01:00
namespace.go Add metadata to namespaces 2022-02-27 09:09:10 +01:00
namespace_test.go ci: use serial testing for api in CI 2022-03-17 08:35:01 -05:00
nodes.go raw_exec: fixup review comments 2022-04-05 15:21:28 -05:00
nodes_test.go ci: use serial testing for api in CI 2022-03-17 08:35:01 -05:00
operator.go api: return error when LicenseGet status is not 200 (#11644) 2021-12-14 19:47:09 -05:00
operator_autopilot.go implement MinQuorum 2020-02-16 16:04:59 -06:00
operator_ent_test.go api: fix ENT-only test imports for moved testutil package (#12320) 2022-03-18 10:12:28 -04:00
operator_metrics.go Metrics gotemplate support, debug bundle features (#9067) 2020-10-14 15:16:10 -04:00
operator_metrics_test.go ci: use serial testing for api in CI 2022-03-17 08:35:01 -05:00
operator_test.go ci: use serial testing for api in CI 2022-03-17 08:35:01 -05:00
quota.go sync 2017-10-13 14:36:02 -07:00
quota_test.go ci: use serial testing for api in CI 2022-03-17 08:35:01 -05: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
recommendations.go added new policy capabilities for recommendations API 2020-10-28 14:32:16 +00:00
regions.go cli: ensure -stale flag is respected by nomad operator debug (#11678) 2021-12-15 10:44:03 -05:00
regions_test.go ci: use serial testing for api in CI 2022-03-17 08:35:01 -05:00
resources.go allow configuration of Docker hostnames in bridge mode (#11173) 2021-09-16 08:13:09 +02:00
resources_test.go ci: use serial testing for api in CI 2022-03-17 08:35:01 -05:00
scaling.go chore: bump golangci-lint from v1.24 to v1.39 2021-04-03 09:50:23 +02:00
scaling_test.go ci: use serial testing for api in CI 2022-03-17 08:35:01 -05:00
search.go api: implement fuzzy search API 2021-04-16 16:36:07 -06:00
search_test.go ci: use serial testing for api in CI 2022-03-17 08:35:01 -05:00
sentinel.go sync 2017-09-19 10:08:23 -05:00
sentinel_test.go ci: use serial testing for api in CI 2022-03-17 08:35:01 -05:00
services.go api: move serviceregistration client to servics to match CLI. 2022-03-24 09:08:45 +01:00
services_test.go api: move serviceregistration client to servics to match CLI. 2022-03-24 09:08:45 +01:00
status.go display server leaders per region 2016-03-17 16:04:09 -07:00
status_test.go ci: use serial testing for api in CI 2022-03-17 08:35:01 -05:00
system.go Add missing ReconcileSummaries API method 2017-08-24 11:55:10 +02:00
system_test.go ci: use serial testing for api in CI 2022-03-17 08:35:01 -05:00
tasks.go MaxClientDisconnect Jobspec checklist (#12177) 2022-04-05 17:12:23 -04:00
tasks_test.go Support Vault entity aliases (#12449) 2022-04-05 14:18:10 -04:00
util_test.go appease the linter and fix an incorrect test 2021-01-08 19:38:25 +00:00
utils.go more testing for ScalingPolicy, mainly around parsing and canonicalization for Min/Max 2020-03-24 19:43:50 +00:00
utils_test.go ci: use serial testing for api in CI 2022-03-17 08:35:01 -05:00