Commit graph

17 commits

Author SHA1 Message Date
Renan DelValle
d7db155d88
Refactoring project to be more similar to other go project. 2020-05-07 10:09:45 -07:00
Renán I. Del Valle
5f510b74ea
Changing dependencies to point to aurora-scheduler organization (#9)
* Removing support for dep as we should now only be building with go1.13+ and mod.

* Ignoring go.sum being created. Use the database instead.

* Upgrading dependencies to their latest versions.

* Replacing thrift dependency temporarily with a patched thrift dependency while we wait for 0.14.0 to be released.

* Change location of gorealis to point to auora-scheduler repository.

* Update .gitignore to contain DS_Store.

* Adding changelog.

* Putting unreleased back into the changelog as this isn't a release PR.
2020-02-19 12:18:50 -08:00
Renan I. Del Valle
f94a055b47
JSON support for taking in host list (#8)
* Bumping up the version.

* Adding flags to take in JSON from the command line.

* go.sum no longer strictly necessary since go1.13

* Adding support for reading JSON list of hosts to drain from STDIN or from a file.

* Adding changes to changelogs
2020-02-07 18:41:59 -08:00
Renan DelValle
125025157b
Hides a perviously exported struct. Shortens a line that was too long. 2019-06-28 10:21:51 -07:00
Renan DelValle
6e6934a3d3
Adding Apache v2 license. 2019-03-25 17:36:24 -07:00
Renan DelValle
3c817a7ffc
Workaround for intervals and timeout being dependent on the init execution order. 2019-03-25 11:38:17 -07:00
Renan DelValle
616d4bc57e
goimports style fixes. 2019-03-19 15:28:24 -07:00
Renan DelValle
4551231644
Adding fetch task status. Changed how logrus is used to be able to be passed down to gorealis. 2019-03-19 15:27:20 -07:00
Renan DelValle
5056eff933
Adding version number to imports in several files. 2019-01-31 18:15:11 -08:00
Renan DelValle
6ab5c9334d
gorealis v2 refactor (#5)
* Changing default timeout for start maintenance.

* Upgrading dependencies to gorealis v2 and thrift  0.12.0

* Refactored to update to gorealis v2.
2018-12-27 11:31:51 -08:00
Renan DelValle
2bd703b2db
Bug fix, print results instead of details. 2018-12-04 18:36:47 -08:00
Renan DelValle
ef76abd73c
Changing timeouts to Duration types for giving the user an easier time setting high amoutns of time. Added support for sla-drain count and percentage policies. Coordination policy is to be implemented. Bumped up version number and fixed eimplicit recon calling the wrong API function. 2018-11-20 20:11:21 -08:00
Renan DelValle
a559137fe3
Adding initial support for printing results in JSON format. Adding Logrus logging and adding a logging level argument. Adding StartMaintenance API. 2018-11-16 21:54:18 -08:00
Renan DelValle
bc28198c2d
Adding ability to print out responses as JSON. 2018-11-09 15:58:26 -08:00
Renan DelValle
0a3288a1dd
Changing role, env, and name to be string pointers. This is due to the fact that TaskQuery can now take nil pointers to ignore certain fields. This allows querying for all jobs of a certain environment, all jobs from a certain role, and all jobs with a certain name. 2018-09-16 21:23:36 -07:00
Renan DelValle
09469f3216
Adding interval configuration to stop command. 2018-06-15 16:07:11 -07:00
Renan DelValle
8e0988513a Adding new verbs and fleshing out the skeleton. Drain works while Kill has an error tha requires a deeper dive. 2017-12-03 12:41:23 -08:00