Alex Dadgar
7f989499ff
Correct defaulting
2018-03-21 16:51:44 -07:00
Michael Schurter
95b3b6eb02
drain: initial drainv2 structs and impl
2018-03-21 16:49:48 -07:00
Preetha Appan
d4056c4489
Rename DelayCeiling to MaxDelay
2018-03-14 16:10:32 -05:00
Preetha Appan
9b609c73c5
Add new reschedule stanza fields to list of valid fields
2018-03-14 16:10:32 -05:00
Preetha Appan
e41f68d7fa
Fix linting
2018-01-31 09:56:53 -06:00
Preetha Appan
eab9d2da92
Add reschedule policy to API, and HCL parsing support.
2018-01-31 09:56:53 -06:00
Michael Schurter
304a037e39
Fix service.check_restart stanza propagation
...
There was a bug in jobspec parsing, a bug in CheckRestart merging, and a
bug in CheckRestart canonicalization. All are now tested.
2018-01-09 15:15:36 -08: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
20d1a3b54d
fix up test fixture to properly parse
2017-12-06 16:23:55 -05:00
Chelsea Holland Komlo
9e49836d4f
move kill_signal to task level, extend to docker
2017-12-06 14:36:39 -05:00
Alex Dadgar
f6fbb36054
sync
2017-10-13 14:36:02 -07:00
Michael Schurter
b381b5fff7
grace_period -> grace
2017-09-26 10:21:35 -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
1608e59415
Add check watcher for restarting unhealthy tasks
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
Michael Schurter
f41475e9dd
Error should tell user exactly what type to use
2017-08-17 16:49:14 -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
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
Michael Schurter
7c67166510
Add TLSSkipVerify support to api and parser
2017-04-19 12:45:34 -07:00
Alex Dadgar
86b0304fc2
Unoptimized implementation + testing
2017-03-07 14:48:54 -08:00
Alex Dadgar
8eb9a5d819
Make validate work without a Nomad agent
2017-03-03 15:02:03 -08:00
Alex Dadgar
8b1359c2d0
Fix canonicalization of services
2017-03-01 15:30:01 -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
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
ee76b78922
rebase
2017-02-20 16:43:28 -08:00
Alex Dadgar
76ab4b6448
Merge branch 'master' into refactor-parser
2017-02-20 15:13:21 -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
Alex Dadgar
a22f1647f9
Add leader task to api and server side
2017-02-10 16:57:47 -08:00
Alex Dadgar
9afa48310e
Template destination file permissions.
...
This PR allows setting the file permissions of the rendered template.
2017-01-31 20:10:01 -08:00
Alex Dadgar
98c17e5195
Rename meta/parsing
2017-01-25 21:27:44 -08:00
Alex Dadgar
314435261d
Rename dispatch_input to dispatch_payload
2017-01-25 21:27:44 -08:00
Michael Schurter
3404fb565e
parameterized_job -> parameterized
2017-01-20 12:46:04 -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
e495eecece
Rename structs
2016-12-14 14:28:43 -08:00
Gábor Lipták
0427706166
Improve parsing of job struct
2016-11-23 20:18:50 -05:00
Alex Dadgar
35d274df1f
Parse
2016-11-23 15:48:36 -08:00
Diptanu Choudhury
490026e67d
Added a warning message if disk attribute is non zero
2016-11-08 17:06:37 -08:00
Alex Dadgar
c97711ef34
Add set contains
2016-10-19 13:06:28 -07:00
Alex Dadgar
2d890e1db3
tests
2016-10-18 14:54:14 -07:00
Alex Dadgar
4048d1db5c
Comments
2016-10-18 11:36:04 -07:00
Alex Dadgar
e34902ae8a
Large refactor of task runner and Vault token rehandling
2016-10-18 11:24:20 -07:00