Sebastiaan van Stijn
e093a0ee08
Use local "ensureRemoveAll" instead of docker/pkg/system
...
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2020-03-12 20:21:14 +01:00
Lantao Liu
50c73e6dc5
Move unix specific logic into _unix.go
...
Signed-off-by: Lantao Liu <lantaol@google.com>
2019-09-03 16:23:42 -07:00
Lantao Liu
8ea0cc90aa
Merge pull request #1221 from jterry75/log_g
...
Switch to containerd/log package
2019-08-07 13:49:33 -07:00
Justin Terry (VM)
193918b702
Switch to containerd/log package
...
Moves to the containerd/log package over logrus directly. This benefits the
traces because if using any log context such as OpenCensus on the entry gRPC
API all traces for that gRPC method will now contain the appropriate TraceID,
SpanID for easy correlation.
Signed-off-by: Justin Terry (VM) <juterry@microsoft.com>
2019-08-07 12:18:18 -07:00
Lantao Liu
eae5fc360f
Infer systemd cgroup based on path suffix.
...
Signed-off-by: Lantao Liu <lantaol@google.com>
2019-08-06 11:00:51 -07:00
Lantao Liu
b74653b821
Print warning message for deprecated options.
...
Signed-off-by: Lantao Liu <lantaol@google.com>
2019-08-02 01:10:11 -07:00
Lantao Liu
ba4a04ae70
Add DefaultRuntimeName option.
...
Signed-off-by: Lantao Liu <lantaol@google.com>
2019-04-18 11:18:25 -07:00
Lantao Liu
fae4f79060
Enable runc.v2 as the default runtime in test.
...
Signed-off-by: Lantao Liu <lantaol@google.com>
2019-04-03 18:47:25 -07:00
Michael Crosby
5eddc1a2cc
Use container'd oci opts for spec generation
...
This bumps the containerd and sys packages in CRI
Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
Remove runtime-tools
Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
Update tests for oci opts package
Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
2019-03-27 16:57:04 -04:00
Lantao Liu
238658719f
Cleanup pod annotation test and only support tailing wildcard.
...
Signed-off-by: Lantao Liu <lantaol@google.com>
2019-03-25 12:54:34 -07:00
Harshal Patil
effd82227c
Add support for passing sandbox annotations to runtime
...
Signed-off-by: Harshal Patil <harshal.patil@in.ibm.com>
2019-03-21 14:38:14 +05:30
Lantao Liu
877c1cadc1
Include default envs from containerd.
...
Signed-off-by: Lantao Liu <lantaol@google.com>
2019-02-12 10:29:45 -08:00
Lantao Liu
ec6dd37691
Add env cache.
...
Signed-off-by: Lantao Liu <lantaol@google.com>
2019-02-12 03:02:20 -08:00
Sebastiaan van Stijn
51affb8839
Replace util.NormalizeImageRef with reference.ParseDockerRef
...
Using the utility caused other project to have containerd/cri
as a dependency, only for this utility. The new `reference.ParseDockerRef`
function does the same (it's a copy of this function).
Tests were kept for now, but could be removed in future.
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2019-02-07 13:22:58 +01:00
Lantao Liu
b1ad4ee9b6
Add unit test for DisableCgroup, RestrictOOMScoreAdj.
...
Signed-off-by: Lantao Liu <lantaol@google.com>
2019-01-03 10:47:34 -08:00
Lantao Liu
1442425f92
Support runtime specific configurations.
...
Signed-off-by: Lantao Liu <lantaol@google.com>
2018-10-08 17:17:29 -07:00
Lantao Liu
953d67d250
Create image reference cache.
...
Signed-off-by: Lantao Liu <lantaol@google.com>
2018-09-10 11:30:52 -07:00
Lantao Liu
063f8158f8
Sort volume mount.
...
Signed-off-by: Lantao Liu <lantaol@google.com>
2018-09-04 22:43:37 -07:00
Evan Hazlett
d7d2212324
vendor bump
...
Signed-off-by: Evan Hazlett <ejhazlett@gmail.com>
containerd: linux -> runtime/linux
Signed-off-by: Evan Hazlett <ejhazlett@gmail.com>
fix utils to properly format vendor repo
Signed-off-by: Evan Hazlett <ejhazlett@gmail.com>
test fixup
Signed-off-by: Evan Hazlett <ejhazlett@gmail.com>
2018-05-30 19:51:24 -04:00
Lantao Liu
ca67f94ee0
Address comments for privileged runtime code.
...
Signed-off-by: Lantao Liu <lantaol@google.com>
2018-03-23 02:17:46 +00:00
Jose Carlos Venegas Munoz
bdc5eee544
test: Add unit tests for privileged runtime functions
...
- Add unit test for privilegedSandbox
- Add unit test for getRuntime
Signed-off-by: Jose Carlos Venegas Munoz <jose.carlos.venegas.munoz@intel.com>
2018-03-20 18:04:23 -06:00
Mike Brown
d4e7154625
move links for cri-containerd to cri
...
Signed-off-by: Mike Brown <brownwm@us.ibm.com>
2018-03-13 17:06:26 -05:00
Lantao Liu
025ffe551f
Rename kubernetes-incubator/cri-containerd to containerd/cri-containerd.
...
Signed-off-by: Lantao Liu <lantaol@google.com>
2018-01-10 22:35:33 +00:00
Lantao Liu
3f80fe06ef
Add simple unit test.
...
Signed-off-by: Lantao Liu <lantaol@google.com>
2017-11-16 23:04:33 +00: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
cd57d063c5
Add systemd cgroup support.
...
Signed-off-by: Lantao Liu <lantaol@google.com>
2017-09-26 06:44:30 +00:00
Lantao Liu
45ee2e554a
Add container attach support.
...
Signed-off-by: Lantao Liu <lantaol@google.com>
2017-08-23 23:48:31 +00:00
Lantao Liu
4317e6119a
Remove sandbox truncindex.
...
Signed-off-by: Lantao Liu <lantaol@google.com>
2017-07-28 23:35:31 +00:00
Lantao Liu
1bf09089b3
Register all possible repo tags and repo digests.
...
Signed-off-by: Lantao Liu <lantaol@google.com>
2017-06-21 20:20:34 +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
Lantao Liu
322b6ef333
Add unit test.
...
Signed-off-by: Lantao Liu <lantaol@google.com>
2017-05-22 19:14:09 +00:00
Lantao Liu
2d2fcedf24
Return not exist error in metadata store
...
Signed-off-by: Lantao Liu <lantaol@google.com>
2017-05-16 19:57:41 +00:00
Random-Liu
e4e9f30c5d
Add unit test.
...
Signed-off-by: Random-Liu <lantaol@google.com>
2017-05-12 13:14:25 -07:00