-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Still an unknown number remains but I am running out of patience. Adding dots is not the best use of my time. Signed-off-by: Valentin Rothberg <[email protected]>
- Loading branch information
Showing
18 changed files
with
64 additions
and
64 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,16 @@ | ||
package common | ||
|
||
// IsTrue determines whether the given string equals "true" | ||
// IsTrue determines whether the given string equals "true". | ||
func IsTrue(str string) bool { | ||
return str == "true" | ||
} | ||
|
||
// IsFalse determines whether the given string equals "false" | ||
// IsFalse determines whether the given string equals "false". | ||
func IsFalse(str string) bool { | ||
return str == "false" | ||
} | ||
|
||
// IsValidBool determines whether the given string equals "true" or "false" | ||
// IsValidBool determines whether the given string equals "true" or "false". | ||
func IsValidBool(str string) bool { | ||
return IsTrue(str) || IsFalse(str) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,122 +1,122 @@ | ||
package annotations | ||
|
||
const ( | ||
// Annotations carries the received Kubelet annotations | ||
// Annotations carries the received Kubelet annotations. | ||
Annotations = "io.kubernetes.cri-o.Annotations" | ||
|
||
// ContainerID is the container ID annotation | ||
// ContainerID is the container ID annotation. | ||
ContainerID = "io.kubernetes.cri-o.ContainerID" | ||
|
||
// ContainerName is the container name annotation | ||
// ContainerName is the container name annotation. | ||
ContainerName = "io.kubernetes.cri-o.ContainerName" | ||
|
||
// ContainerType is the container type (sandbox or container) annotation | ||
// ContainerType is the container type (sandbox or container) annotation. | ||
ContainerType = "io.kubernetes.cri-o.ContainerType" | ||
|
||
// Created is the container creation time annotation | ||
// Created is the container creation time annotation. | ||
Created = "io.kubernetes.cri-o.Created" | ||
|
||
// HostName is the container host name annotation | ||
// HostName is the container host name annotation. | ||
HostName = "io.kubernetes.cri-o.HostName" | ||
|
||
// CgroupParent is the sandbox cgroup parent | ||
// CgroupParent is the sandbox cgroup parent. | ||
CgroupParent = "io.kubernetes.cri-o.CgroupParent" | ||
|
||
// IP is the container ipv4 or ipv6 address | ||
// IP is the container ipv4 or ipv6 address. | ||
IP = "io.kubernetes.cri-o.IP" | ||
|
||
// NamespaceOptions store the options for namespaces | ||
// NamespaceOptions store the options for namespaces. | ||
NamespaceOptions = "io.kubernetes.cri-o.NamespaceOptions" | ||
|
||
// SeccompProfilePath is the node seccomp profile path | ||
// SeccompProfilePath is the node seccomp profile path. | ||
SeccompProfilePath = "io.kubernetes.cri-o.SeccompProfilePath" | ||
|
||
// Image is the container image ID annotation | ||
// Image is the container image ID annotation. | ||
Image = "io.kubernetes.cri-o.Image" | ||
|
||
// ImageName is the container image name annotation | ||
// ImageName is the container image name annotation. | ||
ImageName = "io.kubernetes.cri-o.ImageName" | ||
|
||
// ImageRef is the container image ref annotation | ||
// ImageRef is the container image ref annotation. | ||
ImageRef = "io.kubernetes.cri-o.ImageRef" | ||
|
||
// KubeName is the kubernetes name annotation | ||
// KubeName is the kubernetes name annotation. | ||
KubeName = "io.kubernetes.cri-o.KubeName" | ||
|
||
// PortMappings holds the port mappings for the sandbox | ||
// PortMappings holds the port mappings for the sandbox. | ||
PortMappings = "io.kubernetes.cri-o.PortMappings" | ||
|
||
// Labels are the kubernetes labels annotation | ||
// Labels are the kubernetes labels annotation. | ||
Labels = "io.kubernetes.cri-o.Labels" | ||
|
||
// LogPath is the container logging path annotation | ||
// LogPath is the container logging path annotation. | ||
LogPath = "io.kubernetes.cri-o.LogPath" | ||
|
||
// Metadata is the container metadata annotation | ||
// Metadata is the container metadata annotation. | ||
Metadata = "io.kubernetes.cri-o.Metadata" | ||
|
||
// Name is the pod name annotation | ||
// Name is the pod name annotation. | ||
Name = "io.kubernetes.cri-o.Name" | ||
|
||
// Namespace is the pod namespace annotation | ||
// Namespace is the pod namespace annotation. | ||
Namespace = "io.kubernetes.cri-o.Namespace" | ||
|
||
// PrivilegedRuntime is the annotation for the privileged runtime path | ||
// PrivilegedRuntime is the annotation for the privileged runtime path. | ||
PrivilegedRuntime = "io.kubernetes.cri-o.PrivilegedRuntime" | ||
|
||
// ResolvPath is the resolver configuration path annotation | ||
// ResolvPath is the resolver configuration path annotation. | ||
ResolvPath = "io.kubernetes.cri-o.ResolvPath" | ||
|
||
// HostnamePath is the path to /etc/hostname to bind mount annotation | ||
// HostnamePath is the path to /etc/hostname to bind mount annotation. | ||
HostnamePath = "io.kubernetes.cri-o.HostnamePath" | ||
|
||
// SandboxID is the sandbox ID annotation | ||
// SandboxID is the sandbox ID annotation. | ||
SandboxID = "io.kubernetes.cri-o.SandboxID" | ||
|
||
// SandboxName is the sandbox name annotation | ||
// SandboxName is the sandbox name annotation. | ||
SandboxName = "io.kubernetes.cri-o.SandboxName" | ||
|
||
// ShmPath is the shared memory path annotation | ||
// ShmPath is the shared memory path annotation. | ||
ShmPath = "io.kubernetes.cri-o.ShmPath" | ||
|
||
// MountPoint is the mount point of the container rootfs | ||
// MountPoint is the mount point of the container rootfs. | ||
MountPoint = "io.kubernetes.cri-o.MountPoint" | ||
|
||
// RuntimeHandler is the annotation for runtime handler | ||
// RuntimeHandler is the annotation for runtime handler. | ||
RuntimeHandler = "io.kubernetes.cri-o.RuntimeHandler" | ||
|
||
// TTY is the terminal path annotation | ||
// TTY is the terminal path annotation. | ||
TTY = "io.kubernetes.cri-o.TTY" | ||
|
||
// Stdin is the stdin annotation | ||
// Stdin is the stdin annotation. | ||
Stdin = "io.kubernetes.cri-o.Stdin" | ||
|
||
// StdinOnce is the stdin_once annotation | ||
// StdinOnce is the stdin_once annotation. | ||
StdinOnce = "io.kubernetes.cri-o.StdinOnce" | ||
|
||
// Volumes is the volumes annotation | ||
// Volumes is the volumes annotation. | ||
Volumes = "io.kubernetes.cri-o.Volumes" | ||
|
||
// HostNetwork indicates whether the host network namespace is used or not | ||
// HostNetwork indicates whether the host network namespace is used or not. | ||
HostNetwork = "io.kubernetes.cri-o.HostNetwork" | ||
|
||
// CNIResult is the JSON string representation of the Result from CNI | ||
// CNIResult is the JSON string representation of the Result from CNI. | ||
CNIResult = "io.kubernetes.cri-o.CNIResult" | ||
|
||
// ContainerManager is the annotation key for indicating the creator and | ||
// manager of the container | ||
// manager of the container. | ||
ContainerManager = "io.container.manager" | ||
) | ||
|
||
// ContainerType values | ||
const ( | ||
// ContainerTypeSandbox represents a pod sandbox container | ||
// ContainerTypeSandbox represents a pod sandbox container. | ||
ContainerTypeSandbox = "sandbox" | ||
|
||
// ContainerTypeContainer represents a container running within a pod | ||
// ContainerTypeContainer represents a container running within a pod. | ||
ContainerTypeContainer = "container" | ||
) | ||
|
||
// ContainerManagerLibpod indicates that libpod created and manages the | ||
// container | ||
// container. | ||
const ContainerManagerLibpod = "libpod" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters