Commit Graph

51 Commits

Author SHA1 Message Date
Alex Dadgar
ac1539d5d9 Sync namespace changes 2017-09-07 17:04:21 -07:00
Armon Dadgar
e24fa79aab agent: thread ACLs for Job Register 2017-09-04 13:05:53 -07:00
Michael Schurter
947516405a Add Header and Method support for HTTP checks 2017-08-17 16:44:21 -07:00
Michael Schurter
beae45bad5 Add optional shutdown delay to tasks
Fixes #2441

Defaults to 0 (no delay) for backward compat and because this feature
should be opt-in.
2017-08-16 17:59:46 -07:00
Alex Dadgar
053cff812a Allow template to set Vault grace
This PR allows a template to specify the Vault grace duration.

Fixes https://github.com/hashicorp/nomad/issues/2922
2017-08-01 14:14:08 -07:00
Alex Dadgar
f0a090c6e8 Disallow update stanza on batch jobs
This PR:
* disallows update stanzas on batch jobs
* undeprecates the stagger field
* changes the way warnings are returned
2017-07-07 12:11:39 -07:00
Alex Dadgar
aaf5ab0a21 Job stability 2017-07-07 12:10:04 -07:00
Alex Dadgar
9220836cb4 JobVersions returns struct with optional diff 2017-07-07 12:05:57 -07:00
Alex Dadgar
d0a8332140 job deployment endpoint + api 2017-07-07 12:05:56 -07:00
Michael Schurter
450e347708 Add support for go-getter modes
Fixes #2678
2017-07-06 10:45:44 -07:00
Michael Schurter
3fddb05fc8 Implement DriverNetwork and Service.AddressMode
Ideally DriverNetwork would be fully populated in Driver.Prestart, but
Docker doesn't assign the container's IP until you start the container.

However, it's important to setup the port env vars before calling
Driver.Start, so Prestart should populate that.
2017-06-21 17:19:08 -07:00
Michael Schurter
7dac668adf Functional consul template env file support 2017-05-23 13:45:14 -07:00
Alex Dadgar
d606e98a6e New update block; still need to handle the upgrade path 2017-05-08 17:44:26 -07:00
Alex Dadgar
99e9f2aaaa Agent revert 2017-04-20 11:14:06 -07:00
Michael Schurter
7c67166510 Add TLSSkipVerify support to api and parser 2017-04-19 12:45:34 -07:00
Alex Dadgar
ea15f4b05e Diff code fixes 2017-04-16 16:54:40 -07:00
Alex Dadgar
950171f094 non-purge deregisters 2017-04-15 17:08:05 -07:00
Alex Dadgar
330800f683 Agent API + api package 2017-04-15 17:08:05 -07:00
Alex Dadgar
0c94d4822b Upsert Job Histories 2017-04-15 17:08:05 -07:00
Alex Dadgar
8eb9a5d819 Make validate work without a Nomad agent 2017-03-03 15:02:03 -08:00
Alex Dadgar
6c1673cbc5 Revert "Deregistering non-existant job returns 404" 2017-02-22 18:22:02 -08:00
Alex Dadgar
1ba2875393 Deregistering non-existant job returns 404
Fixes https://github.com/hashicorp/nomad/issues/2326
2017-02-20 20:10:21 -08:00
Alex Dadgar
ee76b78922 rebase 2017-02-20 16:43:28 -08:00
Alex Dadgar
69aa5db628 Add leader and timezone to conversion 2017-02-20 16:36:41 -08:00
Diptanu Choudhury
592bc73a4c Making the job register endpoint use api.Job 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
248c069652 Merge pull request #2128 from hashicorp/f-dispatch
Nomad Constructor Jobs and Dispatch
2017-01-06 05:22:49 +08:00
Alex Dadgar
e495eecece Rename structs 2016-12-14 14:28:43 -08:00
Alex Dadgar
9dc2f63240 agent tests 2016-12-01 16:27:22 -08:00
Alex Dadgar
d978c008d3 Decompress 2016-11-28 16:05:56 -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
Diptanu Choudhury
c91f477d6f Renamed Job.GetJobSummary to Job.Summary 2016-07-25 17:31:40 -07:00
Diptanu Choudhury
03c6692f98 Fixed some bugs 2016-07-25 17:26:38 -07:00
Diptanu Choudhury
7628283c78 Moved the job endpoint around 2016-07-25 17:26:38 -07:00
Diptanu Choudhury
38b1ba7e4e Added the job summary related endpoints 2016-07-25 17:26:38 -07:00
Alex Dadgar
614a93e1e8 Plan api 2016-05-11 18:51:48 -07:00
Alex Dadgar
1303a4365a Initial plan endpoint implementation - WIP 2016-05-05 11:21:58 -07:00
Alex Dadgar
1ab7896133 Move endpoint to be under job 2016-01-19 11:09:36 -08:00
Ryan Uber
3f5dae9b91 agent: json decode directly to structs in api 2015-09-22 20:02:10 -07:00
Armon Dadgar
2c3febc8af http: validating job is provided to avoid nil pointer 2015-09-20 17:38:26 -07:00
Armon Dadgar
e5c7effaa9 http: list results are never null 2015-09-07 10:03:10 -07:00
Armon Dadgar
e2438aee35 http/job: complete the job endpoints 2015-09-06 12:32:22 -07:00
Armon Dadgar
e88b71475b http/job: support force evaluation endpoint 2015-09-06 11:50:37 -07:00
Armon Dadgar
18567b1aff http/job: handle register 2015-09-06 11:47:52 -07:00
Armon Dadgar
352142cdba http/job: adding update endpoint 2015-09-05 19:08:47 -07:00
Armon Dadgar
d1023fe1de http/job: adding job query endpoint 2015-09-05 18:43:40 -07:00
Armon Dadgar
6146f5b630 http/job: implement deregister 2015-09-05 18:20:47 -07:00
Armon Dadgar
1a5c0f7826 http: framework jobs endpoints 2015-09-05 18:00:30 -07:00