github.com/containers/podman/v2@v2.2.2-0.20210501105131-c1e07d070c4c/pkg/annotations/annotations.go (about)

     1  package annotations
     2  
     3  const (
     4  	// Annotations carries the received Kubelet annotations
     5  	Annotations = "io.kubernetes.cri-o.Annotations"
     6  
     7  	// ContainerID is the container ID annotation
     8  	ContainerID = "io.kubernetes.cri-o.ContainerID"
     9  
    10  	// ContainerName is the container name annotation
    11  	ContainerName = "io.kubernetes.cri-o.ContainerName"
    12  
    13  	// ContainerType is the container type (sandbox or container) annotation
    14  	ContainerType = "io.kubernetes.cri-o.ContainerType"
    15  
    16  	// Created is the container creation time annotation
    17  	Created = "io.kubernetes.cri-o.Created"
    18  
    19  	// HostName is the container host name annotation
    20  	HostName = "io.kubernetes.cri-o.HostName"
    21  
    22  	// CgroupParent is the sandbox cgroup parent
    23  	CgroupParent = "io.kubernetes.cri-o.CgroupParent"
    24  
    25  	// IP is the container ipv4 or ipv6 address
    26  	IP = "io.kubernetes.cri-o.IP"
    27  
    28  	// NamespaceOptions store the options for namespaces
    29  	NamespaceOptions = "io.kubernetes.cri-o.NamespaceOptions"
    30  
    31  	// SeccompProfilePath is the node seccomp profile path
    32  	SeccompProfilePath = "io.kubernetes.cri-o.SeccompProfilePath"
    33  
    34  	// Image is the container image ID annotation
    35  	Image = "io.kubernetes.cri-o.Image"
    36  
    37  	// ImageName is the container image name annotation
    38  	ImageName = "io.kubernetes.cri-o.ImageName"
    39  
    40  	// ImageRef is the container image ref annotation
    41  	ImageRef = "io.kubernetes.cri-o.ImageRef"
    42  
    43  	// KubeName is the kubernetes name annotation
    44  	KubeName = "io.kubernetes.cri-o.KubeName"
    45  
    46  	// PortMappings holds the port mappings for the sandbox
    47  	PortMappings = "io.kubernetes.cri-o.PortMappings"
    48  
    49  	// Labels are the kubernetes labels annotation
    50  	Labels = "io.kubernetes.cri-o.Labels"
    51  
    52  	// LogPath is the container logging path annotation
    53  	LogPath = "io.kubernetes.cri-o.LogPath"
    54  
    55  	// Metadata is the container metadata annotation
    56  	Metadata = "io.kubernetes.cri-o.Metadata"
    57  
    58  	// Name is the pod name annotation
    59  	Name = "io.kubernetes.cri-o.Name"
    60  
    61  	// Namespace is the pod namespace annotation
    62  	Namespace = "io.kubernetes.cri-o.Namespace"
    63  
    64  	// PrivilegedRuntime is the annotation for the privileged runtime path
    65  	PrivilegedRuntime = "io.kubernetes.cri-o.PrivilegedRuntime"
    66  
    67  	// ResolvPath is the resolver configuration path annotation
    68  	ResolvPath = "io.kubernetes.cri-o.ResolvPath"
    69  
    70  	// HostnamePath is the path to /etc/hostname to bind mount annotation
    71  	HostnamePath = "io.kubernetes.cri-o.HostnamePath"
    72  
    73  	// SandboxID is the sandbox ID annotation
    74  	SandboxID = "io.kubernetes.cri-o.SandboxID"
    75  
    76  	// SandboxName is the sandbox name annotation
    77  	SandboxName = "io.kubernetes.cri-o.SandboxName"
    78  
    79  	// ShmPath is the shared memory path annotation
    80  	ShmPath = "io.kubernetes.cri-o.ShmPath"
    81  
    82  	// MountPoint is the mount point of the container rootfs
    83  	MountPoint = "io.kubernetes.cri-o.MountPoint"
    84  
    85  	// RuntimeHandler is the annotation for runtime handler
    86  	RuntimeHandler = "io.kubernetes.cri-o.RuntimeHandler"
    87  
    88  	// TTY is the terminal path annotation
    89  	TTY = "io.kubernetes.cri-o.TTY"
    90  
    91  	// Stdin is the stdin annotation
    92  	Stdin = "io.kubernetes.cri-o.Stdin"
    93  
    94  	// StdinOnce is the stdin_once annotation
    95  	StdinOnce = "io.kubernetes.cri-o.StdinOnce"
    96  
    97  	// Volumes is the volumes annotatoin
    98  	Volumes = "io.kubernetes.cri-o.Volumes"
    99  
   100  	// HostNetwork indicates whether the host network namespace is used or not
   101  	HostNetwork = "io.kubernetes.cri-o.HostNetwork"
   102  
   103  	// CNIResult is the JSON string representation of the Result from CNI
   104  	CNIResult = "io.kubernetes.cri-o.CNIResult"
   105  
   106  	// ContainerManager is the annotation key for indicating the creator and
   107  	// manager of the container
   108  	ContainerManager = "io.container.manager"
   109  )
   110  
   111  // ContainerType values
   112  const (
   113  	// ContainerTypeSandbox represents a pod sandbox container
   114  	ContainerTypeSandbox = "sandbox"
   115  
   116  	// ContainerTypeContainer represents a container running within a pod
   117  	ContainerTypeContainer = "container"
   118  )
   119  
   120  // ContainerManagerLibpod indicates that libpod created and manages the
   121  // container
   122  const ContainerManagerLibpod = "libpod"