2017-06-01 16:40:33 +00:00
|
|
|
package annotations
|
|
|
|
|
|
|
|
const (
|
|
|
|
// Annotations carries the received Kubelet annotations
|
|
|
|
Annotations = "io.kubernetes.cri-o.Annotations"
|
|
|
|
|
|
|
|
// ContainerID is the container ID annotation
|
|
|
|
ContainerID = "io.kubernetes.cri-o.ContainerID"
|
|
|
|
|
|
|
|
// ContainerName is the container name annotation
|
|
|
|
ContainerName = "io.kubernetes.cri-o.ContainerName"
|
|
|
|
|
|
|
|
// ContainerType is the container type (sandbox or container) annotation
|
|
|
|
ContainerType = "io.kubernetes.cri-o.ContainerType"
|
|
|
|
|
|
|
|
// Created is the container creation time annotation
|
|
|
|
Created = "io.kubernetes.cri-o.Created"
|
|
|
|
|
|
|
|
// HostName is the container host name annotation
|
|
|
|
HostName = "io.kubernetes.cri-o.HostName"
|
|
|
|
|
2018-02-07 16:15:49 +00:00
|
|
|
// CgroupParent is the sandbox cgroup parent
|
|
|
|
CgroupParent = "io.kubernetes.cri-o.CgroupParent"
|
|
|
|
|
2017-08-29 22:57:26 +00:00
|
|
|
// IP is the container ipv4 or ipv6 address
|
|
|
|
IP = "io.kubernetes.cri-o.IP"
|
|
|
|
|
2018-02-13 10:45:31 +00:00
|
|
|
// HostNetwork tells whether the sandbox is using hostnetwork
|
|
|
|
HostNetwork = "io.kubernetes.cri-o.HostNetwork"
|
|
|
|
|
2017-09-27 18:46:31 +00:00
|
|
|
// SeccompProfilePath is the node seccomp profile path
|
|
|
|
SeccompProfilePath = "io.kubernetes.cri-o.SeccompProfilePath"
|
|
|
|
|
2017-06-01 16:40:33 +00:00
|
|
|
// Image is the container image ID annotation
|
|
|
|
Image = "io.kubernetes.cri-o.Image"
|
|
|
|
|
2017-08-14 19:29:53 +00:00
|
|
|
// ImageName is the container image name annotation
|
|
|
|
ImageName = "io.kubernetes.cri-o.ImageName"
|
|
|
|
|
|
|
|
// ImageRef is the container image ref annotation
|
|
|
|
ImageRef = "io.kubernetes.cri-o.ImageRef"
|
|
|
|
|
2017-06-01 16:40:33 +00:00
|
|
|
// KubeName is the kubernetes name annotation
|
|
|
|
KubeName = "io.kubernetes.cri-o.KubeName"
|
|
|
|
|
2018-02-12 10:31:56 +00:00
|
|
|
// PortMappings holds the port mappings for the sandbox
|
|
|
|
PortMappings = "io.kubernetes.cri-o.PortMappings"
|
|
|
|
|
2017-06-01 16:40:33 +00:00
|
|
|
// Labels are the kubernetes labels annotation
|
|
|
|
Labels = "io.kubernetes.cri-o.Labels"
|
|
|
|
|
|
|
|
// LogPath is the container logging path annotation
|
|
|
|
LogPath = "io.kubernetes.cri-o.LogPath"
|
|
|
|
|
|
|
|
// Metadata is the container metadata annotation
|
|
|
|
Metadata = "io.kubernetes.cri-o.Metadata"
|
|
|
|
|
|
|
|
// Name is the pod name annotation
|
|
|
|
Name = "io.kubernetes.cri-o.Name"
|
|
|
|
|
2018-02-07 16:15:49 +00:00
|
|
|
// Namespace is the pod namespace annotation
|
|
|
|
Namespace = "io.kubernetes.cri-o.Namespace"
|
|
|
|
|
2017-06-01 16:40:33 +00:00
|
|
|
// PrivilegedRuntime is the annotation for the privileged runtime path
|
|
|
|
PrivilegedRuntime = "io.kubernetes.cri-o.PrivilegedRuntime"
|
|
|
|
|
|
|
|
// ResolvPath is the resolver configuration path annotation
|
|
|
|
ResolvPath = "io.kubernetes.cri-o.ResolvPath"
|
|
|
|
|
2017-09-13 08:28:41 +00:00
|
|
|
// HostnamePath is the path to /etc/hostname to bind mount annotation
|
|
|
|
HostnamePath = "io.kubernetes.cri-o.HostnamePath"
|
|
|
|
|
2017-06-01 16:40:33 +00:00
|
|
|
// SandboxID is the sandbox ID annotation
|
|
|
|
SandboxID = "io.kubernetes.cri-o.SandboxID"
|
|
|
|
|
|
|
|
// SandboxName is the sandbox name annotation
|
|
|
|
SandboxName = "io.kubernetes.cri-o.SandboxName"
|
|
|
|
|
|
|
|
// ShmPath is the shared memory path annotation
|
|
|
|
ShmPath = "io.kubernetes.cri-o.ShmPath"
|
|
|
|
|
2017-08-31 13:16:25 +00:00
|
|
|
// MountPoint is the mount point of the container rootfs
|
|
|
|
MountPoint = "io.kubernetes.cri-o.MountPoint"
|
|
|
|
|
2017-06-02 21:15:19 +00:00
|
|
|
// TrustedSandbox is the annotation for trusted sandboxes
|
|
|
|
TrustedSandbox = "io.kubernetes.cri-o.TrustedSandbox"
|
|
|
|
|
2017-06-01 16:40:33 +00:00
|
|
|
// TTY is the terminal path annotation
|
|
|
|
TTY = "io.kubernetes.cri-o.TTY"
|
2017-06-08 20:08:29 +00:00
|
|
|
|
|
|
|
// Stdin is the stdin annotation
|
|
|
|
Stdin = "io.kubernetes.cri-o.Stdin"
|
|
|
|
|
|
|
|
// StdinOnce is the stdin_once annotation
|
|
|
|
StdinOnce = "io.kubernetes.cri-o.StdinOnce"
|
2017-08-14 19:43:56 +00:00
|
|
|
|
|
|
|
// Volumes is the volumes annotatoin
|
|
|
|
Volumes = "io.kubernetes.cri-o.Volumes"
|
2017-06-01 16:40:33 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
// ContainerType values
|
|
|
|
const (
|
|
|
|
// ContainerTypeSandbox represents a pod sandbox container
|
|
|
|
ContainerTypeSandbox = "sandbox"
|
|
|
|
|
|
|
|
// ContainerTypeContainer represents a container running within a pod
|
|
|
|
ContainerTypeContainer = "container"
|
|
|
|
)
|