Diptanu Choudhury
1cae57aee9
Add the Stats api to driverhandle
2016-05-28 19:42:34 -07:00
Ivo Verberk
51755c513f
Implement configuration validation for all task drivers
2016-04-10 00:42:57 +02:00
Ivo Verberk
92bf6f1ad0
Add helper to validate raw configuration data
2016-04-10 00:42:43 +02:00
Alex Dadgar
bb81d2ebd0
add job and task group meta
2016-03-24 17:39:09 -07:00
Diptanu Choudhury
247dea0235
Merge pull request #896 from hashicorp/f-task-instance
...
Add allocation index environment variable
2016-03-09 18:34:32 -08:00
Alex Dadgar
495d0e6dc2
Add allocation index environment variable
2016-03-09 18:09:51 -08:00
Alex Dadgar
6ef841bc34
Updating kill timeout adheres to operator specified maximum
2016-03-03 09:21:21 -08:00
Alex Dadgar
e0b1d7a963
Add Alloc ID/Name and Task Name to environment variables
2016-03-01 16:08:21 -08:00
Alex Dadgar
ccaf000fd6
Fix min duration
2016-02-08 19:46:46 -08:00
Alex Dadgar
e696c7eef7
Fix timeouts between signal and kill
2016-02-08 19:31:57 -08:00
Alex Dadgar
03aca9887b
Client handles updates to KillTimeout and Restart Policy
2016-02-03 19:43:44 -08:00
Ivo Verberk
f71db5e645
Pass a combination of ip and port to the task environment.
...
The different labels can be on different IPs.
2016-01-24 10:31:03 +01:00
Alex Dadgar
b8a42786f3
merge
2016-01-11 09:58:26 -08:00
Alex Dadgar
9f44780f89
User specifiable kill timeout and operator configurable max
2015-12-22 16:10:30 -08:00
Chris Bednarski
63439ee3f7
Squash []map[string]type for port_map and labels into map[string]type
2015-11-19 21:29:37 -08:00
Chris Bednarski
f75404ecf7
Fixed some issues with expose, port mapping, and environment variables
...
- Port mapping now works for reserved ports as well as dynamic ports
- Environment variables were being set twice in two different ways; now they are only set once
- Comprehensive tests for exposed ports, forwarded ports, and environment variables
- Cleaned up / DRYed up a lot of test code
2015-11-19 19:08:21 -08:00
Chris Bednarski
1d1e4bdd08
Merge branch 'master' into f-port-labels
2015-11-16 16:02:38 -08:00
Alex Dadgar
f4b461f97a
Track Task State in the client and capture Wait results
2015-11-16 15:14:21 -08:00
Diptanu Choudhury
72f82a7056
Fixed the test related to setting env variables in tasks
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
Diptanu Choudhury
fb8f922f2e
Passing in the AllocID to exec context so that it can be used in the drivers
2015-11-05 18:34:04 -08:00
Clint Shryock
1e07daa680
drivers: Add/Use go-getter to fetch remote binaries
...
Updates Qemu, Java drivers to use go-getter to fetch binaries
Adds remote artifact support for Exec, Raw Exec drivers
2015-10-26 09:40:06 -05:00
Alex Dadgar
7caa30b859
Change name from pexec to raw_exec; hamming distance one seemed like a bad idea
2015-10-08 12:19:39 -07:00
Alex Dadgar
1098e562fc
Privileged exec driver
2015-10-08 12:19:39 -07:00
Abhishek Chanda
97c2172108
Register rkt as a built in driver
2015-10-06 15:56:39 -07:00
Antoine POPINEAU
962c509586
Moved the envvars logic to TaskEnvironment and TaskEnvironmentVariables(). Added tests there.
2015-10-02 17:46:55 -07:00
Alex Dadgar
75f93ce9fb
Pull task environments into their own type to be reusable across drivers and executors
2015-09-27 17:37:24 -07:00
Alex Dadgar
c555c70eeb
merge fixes
2015-09-27 17:37:24 -07:00
Chris Bednarski
6882f20b9f
Put that back!
2015-09-25 18:38:41 -07:00
Alex Dadgar
8a5e65e27a
Merge qemu test
2015-09-25 16:49:14 -07:00
Alex Dadgar
9caa7ac077
Mount shared alloc dir, modified API and tests
2015-09-25 16:46:41 -07:00
Alex Dadgar
38460ca653
AllocDirBuilder that creates the alloc directory structure
2015-09-25 16:46:41 -07:00
Chris Bednarski
592b45d93a
Docs and remove uppercase since it's checked at the config parse step
2015-09-23 15:28:58 -07:00
Chris Bednarski
18cb6e19af
Changed fmt for CPU to integer
2015-09-23 12:19:46 -07:00
Chris Bednarski
0576c4baaf
Replaced List with Map
2015-09-23 11:56:36 -07:00
Chris Bednarski
c2eb358cfc
Fix some printf tokens
2015-09-22 23:43:05 -07:00
Chris Bednarski
3cf1d33626
Check for nils before accessing data
2015-09-22 23:11:55 -07:00
Chris Bednarski
2007a14497
Pass dynamic ports to the exec driver via environment variables
2015-09-22 22:33:29 -07:00
Chris Bednarski
7b517d83fa
Merge branch 'master' into f-driver-config
...
Conflicts:
client/driver/driver.go
2015-09-09 18:19:19 -07:00
Chris Bednarski
8d4d9645d8
Replace logging and config with DriverContext, which allows us to expand the dependency injection without changing the interface
2015-09-09 18:06:23 -07:00
Clint Shryock
58d9e437d5
driver/qemu: add to builtin drivers
2015-09-08 16:25:36 -05:00
Chris Bednarski
f911a24837
Added config to drivers; needed for docker driver to get the socket endpoint
2015-09-08 12:43:02 -07:00
Armon Dadgar
ad6fe8a05b
driver/java: Add to builtin list
2015-09-04 13:09:11 -07:00
Armon Dadgar
ee520f29b0
client: allocate alloc dir and cleanup
2015-08-30 17:35:58 -07:00
Armon Dadgar
4106e794a8
client: working on runners
2015-08-29 15:46:10 -07:00
Armon Dadgar
0bf1aec4a5
client: making progress
2015-08-23 16:49:48 -07:00
Armon Dadgar
5f11b99caa
client: standardize naming
2015-08-23 15:36:06 -07:00
Armon Dadgar
4a5fcefc40
driver: skeleton package
2015-08-20 16:50:28 -07:00