Commit Graph

59 Commits

Author SHA1 Message Date
Alex Dadgar
8eb9a5d819 Make validate work without a Nomad agent 2017-03-03 15:02:03 -08:00
Alex Dadgar
07f7e19578 Fix vet script and fix vet problems
This PR fixes our vet script and fixes all the missed vet changes.

It also fixes pointers being printed in `nomad stop <job>` and `nomad
node-status <node>`.
2017-02-27 16:00:19 -08:00
Alex Dadgar
6799c7667d ensure spec is set 2017-02-24 14:18:09 -08:00
Alex Dadgar
55e7ad7fd9 Remove defaulting from parse and fix parser tests
This PR removes defaulting from the parse, fixes some regressions that
existed as part of the parser refactor and fixes the tests.
2017-02-22 12:30:05 -08:00
Alex Dadgar
76ab4b6448 Merge branch 'master' into refactor-parser 2017-02-20 15:13:21 -08:00
Alex Dadgar
fb4b6bdeb2 Merge pull request #2321 from hashicorp/f-timezone
Allow specification of timezones in Periodic Jobs
2017-02-17 11:32:14 -08:00
Alex Dadgar
11e9a10378 Fix embedded meta in dispatch response 2017-02-16 15:47:36 -08:00
Diptanu Choudhury
592bc73a4c Making the job register endpoint use api.Job 2017-02-16 13:52:39 -08:00
Diptanu Choudhury
67e6098f87 Removing un-neccessary conversions 2017-02-16 13:52:39 -08:00
Diptanu Choudhury
5502a669e8 Added tests 2017-02-16 13:52:39 -08:00
Diptanu Choudhury
f551dcb83e Making the job spec return api.Job 2017-02-16 13:52:39 -08:00
Alex Dadgar
8d101c0d25 Allow specification of timezones 2017-02-15 14:37:06 -08:00
Michael Schurter
1a845561dd Rename Constructor -> Parameterized Job 2017-01-20 12:43:10 -08:00
Alex Dadgar
248c069652 Merge pull request #2128 from hashicorp/f-dispatch
Nomad Constructor Jobs and Dispatch
2017-01-06 05:22:49 +08:00
Alex Dadgar
bf9355ac4f Children fixes + nomad status outputs summaries
Children object is always initialized instead of lazily.
`nomad status` outputs children summaries and has specialized view for
constructor jobs.
2016-12-14 16:58:54 -08:00
Alex Dadgar
e495eecece Rename structs 2016-12-14 14:28:43 -08:00
Alex Dadgar
a38ade9afb Add structs 2016-12-05 17:24:37 -08:00
Alex Dadgar
2868a77d74 start of the cli command 2016-12-04 21:22:13 -08:00
Alex Dadgar
b05b729562 Remove paused 2016-12-01 13:17:34 -08:00
Alex Dadgar
14de95f97f dispatch beginning 2016-11-25 18:04:55 -08:00
Diptanu Choudhury
5eb4e8adb3 Making the status command return the allocs of currently registered job 2016-11-24 16:31:30 +01:00
Alex Dadgar
22d494f812 Dispatch structs 2016-11-23 15:03:13 -08:00
Mathias Lafeldt
ab8cc89756 Include parent ID in job info returned by Go API
At the moment, this ID is only included when using `Jobs().List()`, which returns `api.JobListStub`.

With this change, the ID will also be available when using `Jobs().Info()`, which returns `api.Job`.

In fact, `ParentID` is currently the only field present in `api.JobListStub` that is not part of `api.Job`.

Note: This has the side effect that `nomad run -output` will now include an empty `ParentID`.
2016-09-15 14:37:13 +02:00
Alex Dadgar
dd7d827eb0 Run command 2016-08-17 16:25:38 -07:00
Alex Dadgar
44a17d595d Fix nomad inspect output 2016-07-28 14:48:25 -07:00
Diptanu Choudhury
ba18de7d4e Added support for retreiving job summary in api 2016-07-25 17:26:38 -07:00
Alex Dadgar
e8b69052aa plan displays launch time of periodic jobs 2016-06-15 13:34:45 -07:00
Alex Dadgar
693299cd9b Add check-index flag to nomad run 2016-06-08 17:56:32 -07:00
Alex Dadgar
c77026f5da plan shows failure reasons and ordered annotations 2016-05-31 21:51:23 +00:00
Alex Dadgar
f56bdbe03a Switch to using the harness 2016-05-16 12:49:18 -07:00
Alex Dadgar
85323c5db6 Remove plan from the response 2016-05-12 11:29:38 -07:00
Alex Dadgar
614a93e1e8 Plan api 2016-05-11 18:51:48 -07:00
Alex Dadgar
20a009e180 Make inspect output submittable 2016-04-13 16:53:39 -07:00
Alex Dadgar
a4e4819716 run -output adds job key 2016-03-29 15:02:14 -07:00
Alex Dadgar
52347d42f9 Add nomad inspect command 2016-03-21 12:46:35 -07:00
Alex Dadgar
1ab7896133 Move endpoint to be under job 2016-01-19 11:09:36 -08:00
Alex Dadgar
94f4b23acb Add force spawn endpoint 2016-01-13 10:19:53 -08:00
Alex Dadgar
f13a9d934a Check parent id of prefix jobs and special case the output if no child job has been launched 2016-01-07 14:43:55 -08:00
Alex Dadgar
c9247c7398 Add ProhibitOverlap option to PeriodicConfig 2016-01-07 11:19:46 -08:00
Ivo Verberk
db82564041 Bring up-to-date with master 2015-12-24 21:16:32 +01:00
Ivo Verberk
905742249e Refactoring continued
* Refactor other cli commands to new design
* Add PrefixList method to api package
* Add more tests
2015-12-24 20:53:37 +01:00
Alex Dadgar
ac3d833942 Leader election restore, add structs to api jobs 2015-12-23 18:26:39 -08:00
Diptanu Choudhury
fc6b874d60 Fixed the imports 2015-10-20 16:42:53 -07:00
Diptanu Choudhury
7b843626b0 Added the UpdataStrategy struct to the api/jobs struct so that we don't loose the information passed on from the cli 2015-10-20 16:16:05 -07:00
Ryan Uber
6c3c45641f api: rename jobs.Delete -> jobs.Deregister 2015-09-22 10:45:06 -07:00
Ryan Uber
cd10614798 api: job deregister returns eval ID 2015-09-22 10:45:06 -07:00
Ryan Uber
06aa0119e4 api: sort all list responses 2015-09-17 13:10:20 -07:00
Ryan Uber
24cd105200 api: composing jobs takes region 2015-09-16 11:42:08 -07:00
Ryan Uber
cfb6f3781c api: add region to jobs 2015-09-16 11:26:47 -07:00
Ryan Uber
d2597982ad api: use stub structs 2015-09-13 20:02:22 -07:00