Skip to content

Commit 3281a40

Browse files
qiutongsbobbypage
authored andcommitted
address comment
1 parent 56f032e commit 3281a40

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

container/containerd/handler.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,10 @@ func newContainerdContainerHandler(
112112
rootfs = "/rootfs"
113113
}
114114

115+
// For sandbox container (pause), the restart is hardcoded to "0"
115116
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
116119
containerName := "POD"
117120
if cntr.Labels["io.cri-containerd.kind"] != "sandbox" {
118121
status, err := client.ContainerStatus(ctx, id)

0 commit comments

Comments
 (0)