Daniel Nephin
de1f766d03
api: properly close the response body
...
reads resp.Body until EOF, so that the http client is able to re-use the TCP connection.
2021-06-14 18:52:59 -04:00
Matt Keeler
8d09d610dd
AutopilotServerHealth now handles the 429 status code ( #8599 )
...
AutopilotServerHealthy now handles the 429 status code
Previously we would error out and not parse the response. Now either a 200 or 429 status code are considered expected statuses and will result in the method returning the reply allowing API consumers to not only see if the system is healthy or not but which server is unhealthy.
2021-03-12 09:40:49 -05:00
Matt Keeler
58f98db227
Add a CLI command for retrieving the autopilot configuration. ( #9142 )
2020-11-11 13:19:02 -05:00
Matt Keeler
755fb72994
Switch to using the external autopilot module
2020-11-09 09:22:11 -05:00
Sarah Adams
7a4be7863d
Use encoding/json as JSON decoder instead of mapstructure ( #6680 )
...
Fixes #6147
2019-10-29 11:13:36 -07:00
Sarah Christoff
86b30bbfbe
Set MinQuorum variable in Autopilot ( #6654 )
...
* Add MinQuorum to Autopilot
2019-10-29 09:04:41 -05:00
Ryan Slade
7d698c0a10
Simplify string(buf.Bytes()) to buf.String() ( #3590 )
2017-10-18 13:26:09 -07:00
Kyle Havlovitz
1ffd2ec05b
Add UpgradeVersionTag to autopilot config
2017-07-18 13:35:41 -07:00
James Phillips
76fdd5f392
Moves operator sub-functions into their own files.
2017-03-30 12:35:50 -07:00