Commit Graph

56 Commits

Author SHA1 Message Date
Alex Dadgar
255fba9069 fix perser 2015-12-01 08:59:00 -08:00
Alex Dadgar
f4320802b4 Add Periodic config to job 2015-12-01 08:59:00 -08:00
Diptanu Choudhury
6786367822 Merge pull request #509 from hashicorp/f-service-name
Implemented interpolation of Job, Task group and Task Names in Service Name
2015-11-26 23:28:13 -08:00
Diptanu Choudhury
70a38fc8cf Added a method to expand service names 2015-11-26 18:30:46 -08:00
Diptanu Choudhury
6067b30d51 Fixed a few tests 2015-11-26 00:26:10 -08:00
Diptanu Choudhury
e6ff842e8f making the service checks in service pointers 2015-11-25 17:44:57 -08:00
Alex Dadgar
3049507dd3 Extract bool conversion to method 2015-11-25 12:33:56 -08:00
Alex Dadgar
3b45305a2b Accept string or bool 2015-11-25 12:25:21 -08:00
Diptanu Choudhury
028ad505cf Fixed the test errors 2015-11-18 02:07:07 -08:00
Diptanu Choudhury
9a578c5c0d Added the implementation of consul client 2015-11-18 00:50:45 -08:00
Diptanu Choudhury
1701ff240c Fixed typo 2015-11-17 17:12:21 -08:00
Diptanu Choudhury
5c3a658525 Added a test which makes sure parsing fails if more than one service block has non empty names 2015-11-17 17:06:29 -08:00
Diptanu Choudhury
169bb0f99c Adding prefix to user defined name and forcing id to be blank during parsing 2015-11-17 16:44:05 -08:00
Diptanu Choudhury
44a03b944c Validating that services are named explicitly if there is more than one Service defn 2015-11-17 16:08:03 -08:00
Diptanu Choudhury
2ce78767a8 Autogenerating names of service 2015-11-17 16:05:03 -08:00
Diptanu Choudhury
3a250a179b Exctacted a method for parsing checks 2015-11-17 15:13:25 -08:00
Diptanu Choudhury
acf673f111 Exctracted the logic of parsing services in a method 2015-11-17 15:13:25 -08:00
Diptanu Choudhury
5a0777fccb Added tests for service block parsing 2015-11-17 15:13:25 -08:00
Diptanu Choudhury
01ef4469d9 Added the parsling logic for service blocks 2015-11-17 15:13:25 -08:00
Mitchell Hashimoto
bc2efb7824 jobspec: add test for types of nested configs 2015-11-16 13:10:57 -08:00
Diptanu Choudhury
87f49c4f7f Fixed the tests for jobspec 2015-11-16 13:10:57 -08:00
Diptanu Choudhury
e8236c0081 Fixed the parsing and encoding logic 2015-11-16 13:10:57 -08:00
Diptanu Choudhury
7f6e940946 Implemented port labeling and driver configs 2015-11-16 13:10:57 -08:00
Mitchell Hashimoto
94a7395ef3 jobspec: new HCL API 2015-11-08 22:57:39 -08:00
Diptanu Choudhury
0d17430306 Fixed grammer of comment 2015-10-30 21:06:56 -07:00
Diptanu Choudhury
a035dcf2c0 Re-using toDuration while figuring out staggertime 2015-10-30 16:49:08 -07:00
Diptanu Choudhury
e2f61e25e9 Sending restart policies to the Nomad API 2015-10-30 16:32:05 -07:00
Diptanu Choudhury
83695cb5d1 Added support for parsing restart blocks 2015-10-30 15:51:39 -07:00
Alex Dadgar
c46447a572 Remove weight and hard/soft fields from constraint 2015-10-27 14:31:14 -07:00
Alex Dadgar
cccef7ac84 Constants for constraints and renaming to use undescore instead of camel 2015-10-26 13:47:56 -07:00
Alex Dadgar
bd10a6bb76 add new test fixture 2015-10-22 17:41:35 -07:00
Alex Dadgar
db90849fb1 Change "unique" to "distinctHosts" 2015-10-22 17:40:41 -07:00
Alex Dadgar
a52bdd914d Add test fixture 2015-10-22 16:52:00 -07:00
Alex Dadgar
7127f6ec60 Documentation and making unique first class in the constraint block 2015-10-22 16:37:20 -07:00
Armon Dadgar
e2093e4189 jobspec: adding sugar for regexp constraint 2015-10-11 15:37:50 -04:00
Armon Dadgar
a5342d61b7 jobspec: adding sugar for version constraint 2015-10-11 15:20:58 -04:00
Antoine POPINEAU
7b0b492d33 Forgot to fix my test after testing it. 2015-10-02 17:46:55 -07:00
Antoine POPINEAU
9c17c0a1d8 Added a jobspec directive to specify envvars. Updated Docker driver to use them accordingly. 2015-10-02 17:46:55 -07:00
Chris Bednarski
e2737bc643 Actually add the fixture 2015-09-25 19:01:29 -07:00
Chris Bednarski
a2f8d59368 Fix case sensitivity issue; also verify we don't get collisions 2015-09-25 18:59:17 -07:00
Chris Bednarski
bcba5db0f7 Put that back too. 2015-09-25 18:45:39 -07:00
Chris Bednarski
5449c8290b Add docker ports; change to uppercase examples and tests 2015-09-23 18:01:08 -07:00
Chris Bednarski
67a891b19a Changed to uppercase + numbers + underscores; updated docs 2015-09-23 15:19:31 -07:00
Chris Bednarski
ed6cd61add Fail parsing a job if the Dynamic Port labels are malformed 2015-09-23 13:44:08 -07:00
Chris Bednarski
cbc153c12f Added named ports 2015-09-22 13:59:16 -07:00
Armon Dadgar
9818912e68 jobspec: default count of group to 1 if not specified 2015-09-20 15:08:29 -07:00
Armon Dadgar
b3700bd060 jobspec: default constraints to hard, parse update configuration 2015-09-20 15:08:29 -07:00
Ryan Uber
4c8eb1d78a jobspec: default job ID also comes from key 2015-09-16 22:06:55 -07:00
Mitchell Hashimoto
b46ef51404 jobspec: defaults 2015-09-14 18:34:26 -07:00
Mitchell Hashimoto
67583aea96 jobspec: validate singletons 2015-09-14 18:30:26 -07:00