github.com/kata-containers/runtime@v0.0.0-20210505125100-04f29832a923/virtcontainers/pkg/annotations/dockershim/annotations.go (about)

     1  // Copyright (c) 2017 Intel Corporation
     2  //
     3  // SPDX-License-Identifier: Apache-2.0
     4  //
     5  
     6  package dockershim
     7  
     8  const (
     9  	// Copied from k8s.io/pkg/kubelet/dockershim/docker_service.go,
    10  	// used to identify whether a docker container is a sandbox or
    11  	// a regular container, will be removed after defining those as
    12  	// public fields in dockershim.
    13  
    14  	// ContainerTypeLabelKey is the container type (podsandbox or container) annotation
    15  	ContainerTypeLabelKey = "io.kubernetes.docker.type"
    16  
    17  	// ContainerTypeLabelSandbox represents a sandbox sandbox container
    18  	ContainerTypeLabelSandbox = "podsandbox"
    19  
    20  	// ContainerTypeLabelContainer represents a container running within a sandbox
    21  	ContainerTypeLabelContainer = "container"
    22  
    23  	// SandboxIDLabelKey is the sandbox ID annotation
    24  	SandboxIDLabelKey = "io.kubernetes.sandbox.id"
    25  )