-
Notifications
You must be signed in to change notification settings - Fork 348
Conversation
4419e9b
to
61744f2
Compare
61744f2
to
66d158b
Compare
66d158b
to
e665aed
Compare
g.RemoveLinuxNamespace(string(runtimespec.PIDNamespace)) // nolint: errcheck | ||
// Do not share pid namespace if namespace mode is CONTAINER. | ||
if namespaces.GetPid() != runtime.NamespaceMode_CONTAINER { | ||
g.AddOrReplaceLinuxNamespace(string(runtimespec.PIDNamespace), getPIDNamespace(sandboxPid)) // nolint: errcheck |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What happened to the host pid mode?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also share with sandbox.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see. Ack.
pkg/server/sandbox_status_test.go
Outdated
HostNetwork: true, | ||
HostPid: false, | ||
HostIpc: true, | ||
Network: runtime.NamespaceMode_POD, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why changing the host network setting in the test?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The test is to test the convert function toCRISandboxStatus
. It's just simply conversion. I just want to make sure all modes are covered. :)
I can keep network NODE
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ack.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
e665aed
to
b16c4f2
Compare
/lgtm |
@yujuhong Thanks for reviewing! Will merge after test passes to unblock the presubmit test. Currently all e2e/node e2e tests are failing. |
This depends on kubernetes-sigs/cri-tools#238. |
Signed-off-by: Lantao Liu <[email protected]>
Signed-off-by: Lantao Liu <[email protected]>
b16c4f2
to
08f52ba
Compare
Signed-off-by: Lantao Liu <[email protected]>
Signed-off-by: Lantao Liu <[email protected]>
08f52ba
to
532a895
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/LGTM
Cool and a new api to implement (log rotation).
@@ -7,7 +7,7 @@ | |||
[![Build Status](https://api.travis-ci.org/containerd/cri-containerd.svg?style=flat-square)](https://travis-ci.org/containerd/cri-containerd) | |||
[![Go Report Card](https://goreportcard.com/badge/github.com/containerd/cri-containerd?style=flat-square)](https://goreportcard.com/report/github.com/containerd/cri-containerd) | |||
|
|||
`cri-containerd` is a [containerd](https://containerd.io/) based implementation of Kubernetes [container runtime interface (CRI)](https://github.com/kubernetes/kubernetes/blob/master/pkg/kubelet/apis/cri/v1alpha1/runtime/api.proto). | |||
`cri-containerd` is a [containerd](https://containerd.io/) based implementation of Kubernetes [container runtime interface (CRI)](https://github.com/kubernetes/kubernetes/blob/master/pkg/kubelet/apis/cri/runtime/v1alpha2/api.proto). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok.. I realize you have no choice here.. but what was the point of them moving the version to the suffix of runtime instead of the prefix. It just feels wrong.
Fixes #597.
All cri-containerd e2e/node-e2e tests are failing because of the breaking CRI change.
Let's get this in sooner.
/cc @yujuhong @mikebrow @verb