Preetha Appan
e5b86d405e
Fix incorrect initialization of reschedule policy for system jobs.
2018-03-19 12:16:13 -05:00
Preetha Appan
74bd789c29
Fix formatting
2018-03-14 16:10:32 -05:00
Preetha Appan
d4056c4489
Rename DelayCeiling to MaxDelay
2018-03-14 16:10:32 -05:00
Preetha Appan
e65d870fe9
Add new reschedule options to API layer and unit tests
2018-03-14 16:10:32 -05:00
Preetha Appan
eab9d2da92
Add reschedule policy to API, and HCL parsing support.
2018-01-31 09:56:53 -06:00
Michael Schurter
25569282b9
Allow custom ports for services and checks
...
Fixes #3380
Adds address_mode to checks (but no auto) and allows services and checks
to set literal port numbers when using address_mode=driver.
This allows SDNs, overlays, etc to advertise internal and host addresses
as well as do checks against either.
2017-12-08 12:03:00 -08:00
Chelsea Holland Komlo
359613e115
fix up basic test
...
add conversion for KillSignal for api/struct representation of task
2017-12-06 14:36:45 -05:00
Preetha Appan
bbeb658831
Populate DisplayMessage in various http endpoints that return allocations, plus unit tests.
2017-11-17 14:53:26 -06:00
Alex Dadgar
616e4c6f49
fix namespaces
2017-10-23 16:07:38 -07:00
Michael Schurter
fae8e7f699
SecretID -> AuthToken
2017-10-12 15:16:33 -07:00
Alex Dadgar
ddc2efa4ac
sync
2017-09-19 10:08:23 -05:00
Michael Schurter
092057a32b
Canonicalize and Merge CheckRestart in api
2017-09-14 16:48:39 -07:00
Michael Schurter
78c72f8725
Default grace period to 1s
2017-09-14 16:46:54 -07:00
Michael Schurter
555d1e24dc
on_warning=false -> ignore_warnings=false
...
Treat warnings as unhealthy by default
2017-09-14 16:46:54 -07:00
Michael Schurter
bd1a342a92
Nest restart fields in CheckRestart
2017-09-14 16:46:54 -07:00
Michael Schurter
a720bb5a91
Add restart fields
2017-09-14 16:46:54 -07:00
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