Commit Graph

66 Commits

Author SHA1 Message Date
Lantao Liu
d6435996e2 Use new Kill task api.
Signed-off-by: Lantao Liu <lantaol@google.com>
2017-06-16 16:43:13 +00:00
Lantao Liu
5b7cbf1bc6 Create/remove sandbox container.
Signed-off-by: Lantao Liu <lantaol@google.com>
2017-06-16 16:43:13 +00:00
Lantao Liu
cb9e104cf1 Create/delete containerd containerd
Signed-off-by: Lantao Liu <lantaol@google.com>
2017-06-16 16:43:13 +00:00
Lantao Liu
6ca9c65578 Rename more container to task.
Signed-off-by: Lantao Liu <lantaol@google.com>
2017-06-16 02:34:43 +00:00
Lantao Liu
bad279e0f6 Finish snapshot support.
Signed-off-by: Lantao Liu <lantaol@google.com>
2017-06-16 02:34:43 +00:00
Mike Brown
484a326717 modify code to compile on updated containerd
Signed-off-by: Mike Brown <brownwm@us.ibm.com>
2017-06-15 23:14:21 +00:00
Lantao Liu
d4f7380f59 Merge pull request #73 from Random-Liu/fix-delete-race
Fix Delete race.
2017-06-14 14:04:24 -07:00
Lantao Liu
2ae22b33b7 Fix a race that fake execution client sends event to closed channel.
Signed-off-by: Lantao Liu <lantaol@google.com>
2017-06-14 01:50:33 +00:00
Lantao Liu
bd09d31777 Fix Delete race.
Signed-off-by: Lantao Liu <lantaol@google.com>
2017-06-14 01:36:21 +00:00
Lantao Liu
7050011faa Merge pull request #75 from Random-Liu/kill-with-0-timeout
Kill container directly if timeout is 0.
2017-06-13 15:41:01 -07:00
Lantao Liu
d381cfa831 Kill container directly if timeout is 0.
Signed-off-by: Lantao Liu <lantaol@google.com>
2017-06-13 19:29:02 +00:00
Lantao Liu
87ec0f89bf Add the missing loop in event handler.
Signed-off-by: Lantao Liu <lantaol@google.com>
2017-06-13 17:48:28 +00:00
Lantao Liu
479e8c3045 Merge pull request #70 from Random-Liu/mount-cgroup
Mount cgroup into the container and add unit test for privileged mount.
2017-06-12 14:14:07 -07:00
Lantao Liu
9b1708b408 Merge pull request #71 from Random-Liu/fix-capabilities
Fix capabilities support.
2017-06-12 09:34:48 -07:00
Lantao Liu
f247a0819d Fix capabilities support.
Signed-off-by: Lantao Liu <lantaol@google.com>
2017-06-12 16:18:50 +00:00
Lantao Liu
9d5990fe4f Add sandbox /dev/shm.
Signed-off-by: Lantao Liu <lantaol@google.com>
2017-06-11 09:49:46 +00:00
Lantao Liu
ffa4ffe3bf Mount cgroup into the container and add unit test for privileged mount.
Signed-off-by: Lantao Liu <lantaol@google.com>
2017-06-11 02:23:59 +00:00
Lantao Liu
e9a930b28b Merge pull request #51 from heartlock/support-privileged
Support privileged
2017-06-10 17:30:57 -07:00
Lantao Liu
227dbe97f2 Merge pull request #50 from Crazykev/resolv
Generate and maintain resolv.conf for sandbox
2017-06-09 09:41:23 -07:00
Crazykev
62d1e5dc10 add unit test
Signed-off-by: Crazykev <crazykev@zju.edu.cn>
2017-06-09 19:36:30 +08:00
Crazykev
9bf7ffd51a generate and maintain resolv.conf for sandbox
Signed-off-by: Crazykev <crazykev@zju.edu.cn>
2017-06-09 19:36:30 +08:00
heartlock
dda03f733a support privileged
Signed-off-by: heartlock <21521209@zju.edu.cn>
2017-06-09 15:42:04 +08:00
Lantao Liu
f770d4fea3 Use containerd version returned by version service.
Signed-off-by: Lantao Liu <lantaol@google.com>
2017-06-07 22:04:09 +00:00
Lantao Liu
4eac00fe23 Add unit test.
Signed-off-by: Lantao Liu <lantaol@google.com>
2017-06-06 06:43:38 +00:00
Lantao Liu
88f4c252d6 Add sandbox /etc/hosts when using host network
Signed-off-by: Lantao Liu <lantaol@google.com>
2017-06-06 06:43:38 +00:00
Lantao Liu
69fcf97583 Add unit test
Signed-off-by: Lantao Liu <lantaol@google.com>
2017-06-02 16:36:02 +00:00
Lantao Liu
e657e1eb14 Add container logging support.
Signed-off-by: Lantao Liu <lantaol@google.com>
2017-06-02 16:36:02 +00:00
Lantao Liu
95e0fc694f Cleanup some code.
Signed-off-by: Lantao Liu <lantaol@google.com>
2017-06-02 02:15:58 +00:00
Lantao Liu
a4e067cdff Merge pull request #53 from Random-Liu/add-other-small-functions
Add other small functions
2017-05-31 14:54:42 -07:00
Lantao Liu
0179d0fbaf Retry and backoff when lost connection with containerd.
Signed-off-by: Lantao Liu <lantaol@google.com>
2017-05-31 21:33:52 +00:00
Lantao Liu
2df96e1654 Add unit test.
Signed-off-by: Lantao Liu <lantaol@google.com>
2017-05-31 19:11:56 +00:00
Lantao Liu
7c1a4c1fc1 Add Version, UpdateRuntimeConfig and Status.
Signed-off-by: Lantao Liu <lantaol@google.com>
2017-05-31 19:11:56 +00:00
Lantao Liu
dee95bc315 Add unit test.
Signed-off-by: Lantao Liu <lantaol@google.com>
2017-05-31 01:18:22 +00:00
Lantao Liu
80c973a550 Ensure container rootfs and apply image config
Signed-off-by: Lantao Liu <lantaol@google.com>
2017-05-31 01:18:22 +00:00
Lantao Liu
6eb1ddb1f8 Add unit test.
Signed-off-by: Lantao Liu <lantaol@google.com>
2017-05-31 00:39:38 +00:00
Lantao Liu
eb20601c08 Pull sandbox image and apply image config
Signed-off-by: Lantao Liu <lantaol@google.com>
2017-05-31 00:39:38 +00:00
Lantao Liu
60e28a9460 Minor cleanup.
Signed-off-by: Lantao Liu <lantaol@google.com>
2017-05-27 00:31:30 +00:00
Random-Liu
c3ac5f7533 Add image pull waiting.
Signed-off-by: Random-Liu <lantaol@google.com>
2017-05-27 00:12:00 +00:00
Random-Liu
bc7dfa2650 Update containerd version to 193abed96e.
Signed-off-by: Random-Liu <lantaol@google.com>
2017-05-27 00:07:48 +00:00
Random-Liu
8c1f26747a Add unit test.
Signed-off-by: Random-Liu <lantaol@google.com>
2017-05-26 23:52:31 +00:00
Random-Liu
b112418e7b Finish image management.
Signed-off-by: Random-Liu <lantaol@google.com>
2017-05-26 23:52:31 +00:00
Crazykev
49e7ef2153 update kubernetes vendor for new CRI change
Signed-off-by: Crazykev <crazykev@zju.edu.cn>
2017-05-24 10:25:55 +08:00
Lantao Liu
6ce1dc0167 Merge pull request #44 from Random-Liu/stop-on-cancellation
Stop waiting on cancellation.
2017-05-23 15:08:57 -07:00
Xianglin Gao
4a4414987f Add unit test
Signed-off-by: Xianglin Gao <xlgao@zju.edu.cn>
2017-05-23 18:30:20 +08:00
Xianglin Gao
6d2b9fabca And setup and teardown
Signed-off-by: Xianglin Gao <xlgao@zju.edu.cn>
2017-05-23 15:17:40 +08:00
Lantao Liu
84390cc6a7 Stop waiting on cancellation.
Signed-off-by: Lantao Liu <lantaol@google.com>
2017-05-23 05:47:48 +00:00
Xianglin Gao
c541515674 Add flags and initialize network plugin
Signed-off-by: Xianglin Gao <xlgao@zju.edu.cn>
2017-05-23 12:48:36 +08:00
Lantao Liu
10e3afbb23 Merge pull request #22 from Random-Liu/add-container-implementation
Add container implementation
2017-05-22 13:21:05 -07:00
Lantao Liu
322b6ef333 Add unit test.
Signed-off-by: Lantao Liu <lantaol@google.com>
2017-05-22 19:14:09 +00:00
Random-Liu
6ac71e5862 Add initial container implementation.
Signed-off-by: Lantao Liu <lantaol@google.com>
2017-05-22 19:14:09 +00:00