We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 56f032e commit 3281a40Copy full SHA for 3281a40
container/containerd/handler.go
@@ -112,7 +112,10 @@ func newContainerdContainerHandler(
112
rootfs = "/rootfs"
113
}
114
115
+ // For sandbox container (pause), the restart is hardcoded to "0"
116
var restart uint32 = 0
117
+ // Special container name for sandbox(pause)
118
+ // It is defined in https://github.com/kubernetes/kubernetes/blob/master/pkg/kubelet/dockershim/naming.go#L50-L52
119
containerName := "POD"
120
if cntr.Labels["io.cri-containerd.kind"] != "sandbox" {
121
status, err := client.ContainerStatus(ctx, id)
0 commit comments