Daniel Nephin
6ac9149c3f
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
30903db442
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
7ef9b04f90
Add a CLI command for retrieving the autopilot configuration. ( #9142 )
2020-11-11 13:19:02 -05:00
Matt Keeler
c048e86bb2
Switch to using the external autopilot module
2020-11-09 09:22:11 -05:00
Sarah Adams
78ad8203a4
Use encoding/json as JSON decoder instead of mapstructure ( #6680 )
...
Fixes #6147
2019-10-29 11:13:36 -07:00
Sarah Christoff
5e1c6e907b
Set MinQuorum variable in Autopilot ( #6654 )
...
* Add MinQuorum to Autopilot
2019-10-29 09:04:41 -05:00
Ryan Slade
dcb392df46
Simplify string(buf.Bytes()) to buf.String() ( #3590 )
2017-10-18 13:26:09 -07:00
Kyle Havlovitz
19eae3d14b
Add UpgradeVersionTag to autopilot config
2017-07-18 13:35:41 -07:00
James Phillips
08f81ebddb
Moves operator sub-functions into their own files.
2017-03-30 12:35:50 -07:00