Lantao Liu
e41b6d3c24
Refactor container io code
...
Signed-off-by: Lantao Liu <lantaol@google.com >
2017-11-10 21:03:29 +00:00
Lantao Liu
c4931c8409
Keep stdin open instead of opening when use it.
...
Signed-off-by: Lantao Liu <lantaol@google.com >
2017-11-09 09:28:30 +00:00
Lantao Liu
2433ae7539
Merge pull request #393 from abhi/labels
...
Adding kube pod and container labels to containerd
2017-11-07 23:39:20 -08:00
abhi
cd5886d647
Adding kube pod and container labels to containerd
...
Currently we have the pod and container labels part of
containerd metadata extensions. However for third party users
like cadvisor that depend on standard kube labels will need
to be aware of the way metadata is stored in containerd to
fetch the labels.
Signed-off-by: abhi <abhi@docker.com >
2017-11-07 22:19:19 -08:00
Lantao Liu
affc6e93a8
Merge pull request #397 from yanxuean/trunc-for-list
...
Add truncindex for filter in List and Stat
2017-11-07 00:41:03 -08:00
yanxuean
12bbbc0edc
add unit test for listcontainer and listpodsandbox
...
Signed-off-by: yanxuean <yan.xuean@zte.com.cn >
2017-11-07 15:57:29 +08:00
Lantao Liu
75e97dd168
Reverse the wrong logic for tty.
...
Signed-off-by: Lantao Liu <lantaol@google.com >
2017-11-07 02:03:44 +00:00
Lantao Liu
b9d4eda403
Merge pull request #401 from Random-Liu/add-comment
...
Add comment for #398 .
2017-11-06 14:09:50 -08:00
Lantao Liu
68e74dc16a
Merge pull request #394 from Random-Liu/fix-container-streaming
...
Various fixes for container streaming.
2017-11-06 14:09:30 -08:00
Lantao Liu
6f97764171
Add comment for #398 .
...
Signed-off-by: Lantao Liu <lantaol@google.com >
2017-11-06 20:54:50 +00:00
Lantao Liu
eec818e6ab
Various fixes for container streaming.
...
Signed-off-by: Lantao Liu <lantaol@google.com >
2017-11-06 20:50:50 +00:00
Lantao Liu
e363c218d6
Merge pull request #395 from Random-Liu/fix-image-in-container-status
...
Return image tag as image spec.
2017-11-06 10:55:37 -08:00
Justin Cormack
913836474b
Remove comment about whether other paths should be read only with ro root
...
Since https://github.com/moby/moby/pull/35344 we clarified that this behaviour
was a mistake, and the read only flag should just apply to the actual rootfs,
so it corresponds to the OCI read-only option. Other mounts may be able to be
adjusted by re-specifying them or other means but this is unrelated.
Signed-off-by: Justin Cormack <justin.cormack@docker.com >
2017-11-06 14:21:16 +00:00
yanxuean
6234337459
Add truncindex for filter in List and Stat
...
fix #344
Signed-off-by: yanxuean <yan.xuean@zte.com.cn >
2017-11-06 16:47:43 +08:00
Lantao Liu
050ee1de95
Return image tag as image spec.
...
Signed-off-by: Lantao Liu <lantaol@google.com >
2017-11-06 06:05:49 +00:00
Lantao Liu
74abfe349d
Add crictl config.
...
Signed-off-by: Lantao Liu <lantaol@google.com >
2017-11-06 05:28:58 +00:00
Lantao Liu
9f2de2cd02
Merge pull request #382 from miaoyq/return-config
...
"Status" function return cri-containerd config in json format
2017-11-02 20:41:31 -07:00
Lantao Liu
e19e043a4c
Merge pull request #386 from Random-Liu/fix-spammy-cni-log
...
Get rid of spammy CNI log.
2017-11-02 20:40:50 -07:00
Yanqiang Miao
9b71208be9
"Status" function return cri-containerd config in json format
...
Signed-off-by: Yanqiang Miao <miao.yanqiang@zte.com.cn >
2017-11-03 09:23:05 +08:00
Lantao Liu
73c2cb5632
Fix spammy CNI log.
...
Signed-off-by: Lantao Liu <lantaol@google.com >
2017-11-03 01:08:07 +00:00
Mike Brown
df6f4a3655
adds help for load command ( #383 )
...
* adds help for load command
Signed-off-by: Mike Brown <brownwm@us.ibm.com >
* vendor restrom/dedent
Signed-off-by: Mike Brown <brownwm@us.ibm.com >
2017-11-02 15:38:24 -07:00
Lantao Liu
8679d10733
Merge pull request #380 from Random-Liu/fix-deadlock
...
Do not call `Usage` inside `Walk`.
2017-11-01 22:04:10 +01:00
Lantao Liu
2453c03daa
Do not call Usage inside Walk.
...
Signed-off-by: Lantao Liu <lantaol@google.com >
2017-11-01 18:11:11 +00:00
Lantao Liu
2cb1572667
Merge pull request #379 from yanxuean/unpack
...
Use image.IsUnpacked
2017-11-01 07:50:12 +01:00
yanxuean
9027a02e8e
Use image.IsUnpacked
...
fix #361
Signed-off-by: yanxuean <yan.xuean@zte.com.cn >
2017-11-01 13:51:25 +08:00
Lantao Liu
4eaaee380f
Fix removing state recover.
...
Signed-off-by: Lantao Liu <lantaol@google.com >
2017-10-31 20:03:58 +00:00
Lantao Liu
4e6e1cab0d
Add the missing container log path in container status.
...
Signed-off-by: Lantao Liu <lantaol@google.com >
2017-10-30 06:03:52 +00:00
Lantao Liu
1d14c11dcb
Merge pull request #368 from Random-Liu/not-log-output
...
Do not log container output in error log.
2017-10-28 05:50:14 +02:00
Lantao Liu
f2fa351a1f
Do not log container output in error log.
...
Signed-off-by: Lantao Liu <lantaol@google.com >
2017-10-28 02:16:43 +00:00
Lantao Liu
6cded68bac
Merge pull request #360 from Random-Liu/add-image-load
...
Add image load
2017-10-28 00:43:20 +02:00
Lantao Liu
25fdf72692
Add image load.
...
Signed-off-by: Lantao Liu <lantaol@google.com >
2017-10-27 21:51:04 +00:00
Lantao Liu
32806fa375
Fix a log line and also set containerd log level to debug in node e2e.
...
Signed-off-by: Lantao Liu <lantaol@google.com >
2017-10-27 07:21:37 +00:00
Lantao Liu
f10cc58362
Revert "Put containerd-shim into pod cgroup"
...
This reverts commit e9cf1d5909 .
Signed-off-by: Lantao Liu <lantaol@google.com >
2017-10-27 05:33:55 +00:00
Lantao Liu
5e74cba0f0
Add log of generated id for debugging.
...
Signed-off-by: Lantao Liu <lantaol@google.com >
2017-10-27 00:11:16 +00:00
Lantao Liu
6c6b337e87
Merge pull request #358 from Random-Liu/unpack-when-creation
...
Also unpack image during creation.
2017-10-26 22:44:07 +02:00
Lantao Liu
acc3f74d5c
Also unpack image during creation.
...
Signed-off-by: Lantao Liu <lantaol@google.com >
2017-10-26 17:57:53 +00:00
Yanqiang Miao
e9cf1d5909
Put containerd-shim into pod cgroup
...
Signed-off-by: Yanqiang Miao <miao.yanqiang@zte.com.cn >
2017-10-26 10:17:12 +08:00
Lantao Liu
698f0ea2ae
Merge pull request #345 from yanxuean/imagereadiness
...
check image readiness when recover
2017-10-23 16:09:14 +02:00
yanxuean
9d06ac0e2b
check image readiness when recover
...
fix #303
Signed-off-by: yanxuean <yan.xuean@zte.com.cn >
2017-10-23 19:21:39 +08:00
Ian Campbell
d75e0882c4
typo: subtract not substract.
...
Signed-off-by: Ian Campbell <ijc@docker.com >
2017-10-13 09:50:17 +01:00
yanxuean
3887b0a1a0
Add a flag to set OOMScore
...
fix #337
Signed-off-by: yanxuean <yan.xuean@zte.com.cn >
2017-10-12 16:43:35 +08:00
Lantao Liu
885024f987
Merge pull request #295 from miaoyq/use-mount-lookup
...
Get the mountInfo by 'LookupMount' in containerd
2017-10-11 21:05:39 -07:00
Lantao Liu
61d598d00f
Merge pull request #235 from yanxuean/truncindex
...
Add Truncindex for container, sandbox and image
2017-10-11 21:03:16 -07:00
Yanqiang Miao
c65921b16a
Get the mountInfo by 'LookupMount' in containerd
...
Signed-off-by: Yanqiang Miao <miao.yanqiang@zte.com.cn >
2017-10-12 11:09:24 +08:00
yanxuean
5ee3423820
add truncindex
...
fix #222
Signed-off-by: yanxuean <yan.xuean@zte.com.cn >
2017-10-12 10:32:20 +08:00
Lantao Liu
e4b818ff41
Merge pull request #342 from Random-Liu/update-kubernetes-containerd
...
Update kubernetes and containerd.
2017-10-11 00:23:24 -07:00
Lantao Liu
bde8b0517e
Update kubernetes and containerd.
...
Signed-off-by: Lantao Liu <lantaol@google.com >
2017-10-11 06:16:19 +00:00
Lantao Liu
6cb3d27ed3
Use device number to find uuid
...
Signed-off-by: Lantao Liu <lantaol@google.com >
2017-10-09 06:10:43 +00:00
Lantao Liu
09d7d652e6
Change Version to return cri-containerd version instead.
...
Signed-off-by: Lantao Liu <lantaol@google.com >
2017-10-07 00:47:51 +00:00
Lantao Liu
e78c85f76b
Use new container update function
...
Signed-off-by: Lantao Liu <lantaol@google.com >
2017-10-06 17:57:26 +00:00