Update the kubernetes api to latest
Signed-off-by: Mrunal Patel <mrunalp@gmail.com>
This commit is contained in:
parent
f5f2ff63b2
commit
303a3929b2
56 changed files with 6885 additions and 2610 deletions
1251
vendor/github.com/kubernetes/kubernetes/pkg/kubelet/api/v1alpha1/runtime/api.pb.go
generated
vendored
1251
vendor/github.com/kubernetes/kubernetes/pkg/kubelet/api/v1alpha1/runtime/api.pb.go
generated
vendored
File diff suppressed because it is too large
Load diff
97
vendor/github.com/kubernetes/kubernetes/pkg/kubelet/api/v1alpha1/runtime/api.proto
generated
vendored
97
vendor/github.com/kubernetes/kubernetes/pkg/kubelet/api/v1alpha1/runtime/api.proto
generated
vendored
|
@ -112,26 +112,6 @@ message Mount {
|
|||
optional bool selinux_relabel = 5;
|
||||
}
|
||||
|
||||
// ResourceRequirements contains a set of resources
|
||||
// Valid resources are:
|
||||
// - cpu, in cores. (500m = .5 cores)
|
||||
// - memory, in bytes. (500Gi = 500GiB = 500 * 1024 * 1024 * 1024)
|
||||
message ResourceRequirements {
|
||||
// The maximum amount of compute resources allowed.
|
||||
optional double limits = 1;
|
||||
// The minimum amount of compute resources required.
|
||||
// If Request is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value
|
||||
optional double requests = 2;
|
||||
}
|
||||
|
||||
// PodSandboxResources contains the CPU/memory resource requirements.
|
||||
message PodSandboxResources {
|
||||
// CPU resource requirement.
|
||||
optional ResourceRequirements cpu = 1;
|
||||
// Memory resource requirement.
|
||||
optional ResourceRequirements memory = 2;
|
||||
}
|
||||
|
||||
// NamespaceOption provides options for Linux namespaces.
|
||||
message NamespaceOption {
|
||||
// If set, use the host's network namespace.
|
||||
|
@ -154,11 +134,29 @@ message LinuxPodSandboxConfig {
|
|||
optional NamespaceOption namespace_options = 2;
|
||||
}
|
||||
|
||||
// PodSandboxMetadata holds all necessary information for building the sandbox name.
|
||||
// The container runtime is encouraged to expose the metadata associated with the
|
||||
// PodSandbox in its user interface for better user experience. E.g., runtime can
|
||||
// construct a unique PodSandboxName based on the metadata.
|
||||
message PodSandboxMetadata {
|
||||
// The pod name of the sandbox. Same as the pod name in the PodSpec.
|
||||
optional string name = 1;
|
||||
// The pod uid of the sandbox. Same as the pod UID in the PodSpec.
|
||||
optional string uid = 2;
|
||||
// The pod namespace of the sandbox. Same as the pod namespace in the PodSpec.
|
||||
optional string namespace = 3;
|
||||
// The attempt number of creating the sandbox.
|
||||
optional uint32 attempt = 4;
|
||||
}
|
||||
|
||||
// PodSandboxConfig holds all the required and optional fields for creating a
|
||||
// sandbox.
|
||||
message PodSandboxConfig {
|
||||
// The name of the sandbox.
|
||||
optional string name = 1;
|
||||
// The metadata of the sandbox. This information will uniquely identify
|
||||
// the sandbox, and the runtime should leverage this to ensure correct
|
||||
// operation. The runtime may also use this information to improve UX, such
|
||||
// as by constructing a readable name.
|
||||
optional PodSandboxMetadata metadata = 1;
|
||||
// The hostname of the sandbox.
|
||||
optional string hostname = 2;
|
||||
// Path to the directory on the host in which container log files are
|
||||
|
@ -181,20 +179,13 @@ message PodSandboxConfig {
|
|||
optional DNSOption dns_options = 4;
|
||||
// The port mappings for the sandbox.
|
||||
repeated PortMapping port_mappings = 5;
|
||||
// Resources specifies the resource limits for the sandbox (i.e., the
|
||||
// aggregate cpu/memory resources limits of all containers).
|
||||
// Note: On a Linux host, kubelet will create a pod-level cgroup and pass
|
||||
// it as the cgroup parent for the PodSandbox. For some runtimes, this is
|
||||
// sufficient. For others, e.g., hypervisor-based runtimes, explicit
|
||||
// resource limits for the sandbox are needed at creation time.
|
||||
optional PodSandboxResources resources = 6;
|
||||
// Labels are key value pairs that may be used to scope and select individual resources.
|
||||
map<string, string> labels = 7;
|
||||
map<string, string> labels = 6;
|
||||
// Annotations is an unstructured key value map that may be set by external
|
||||
// tools to store and retrieve arbitrary metadata.
|
||||
map<string, string> annotations = 8;
|
||||
map<string, string> annotations = 7;
|
||||
// Optional configurations specific to Linux hosts.
|
||||
optional LinuxPodSandboxConfig linux = 9;
|
||||
optional LinuxPodSandboxConfig linux = 8;
|
||||
}
|
||||
|
||||
message CreatePodSandboxRequest {
|
||||
|
@ -255,8 +246,8 @@ enum PodSandBoxState {
|
|||
message PodSandboxStatus {
|
||||
// ID of the sandbox.
|
||||
optional string id = 1;
|
||||
// Name of the sandbox
|
||||
optional string name = 2;
|
||||
// Metadata of the sandbox.
|
||||
optional PodSandboxMetadata metadata = 2;
|
||||
// State of the sandbox.
|
||||
optional PodSandBoxState state = 3;
|
||||
// Creation timestamp of the sandbox
|
||||
|
@ -302,8 +293,8 @@ message ListPodSandboxRequest {
|
|||
message PodSandbox {
|
||||
// The id of the PodSandbox
|
||||
optional string id = 1;
|
||||
// The name of the PodSandbox
|
||||
optional string name = 2;
|
||||
// Metadata of the sandbox
|
||||
optional PodSandboxMetadata metadata = 2;
|
||||
// The state of the PodSandbox
|
||||
optional PodSandBoxState state = 3;
|
||||
// Creation timestamps of the sandbox
|
||||
|
@ -385,9 +376,26 @@ message LinuxUser {
|
|||
repeated int64 additional_gids = 3;
|
||||
}
|
||||
|
||||
message ContainerConfig {
|
||||
// Name of the container.
|
||||
// ContainerMetadata holds all necessary information for building the container
|
||||
// name. The container runtime is encouraged to expose the metadata in its user
|
||||
// interface for better user experience. E.g., runtime can construct a unique
|
||||
// container name based on the metadata. Note that (name, attempt) is unique
|
||||
// within a sandbox for the entire lifetime of the sandbox.
|
||||
message ContainerMetadata {
|
||||
// The name of the container. Same as the container name in the PodSpec.
|
||||
optional string name = 1;
|
||||
// The attempt number of creating the container.
|
||||
optional uint32 attempt = 2;
|
||||
}
|
||||
|
||||
// ContainerConfig holds all the required and optional fields for creating a
|
||||
// container.
|
||||
message ContainerConfig {
|
||||
// The metadata of the container. This information will uniquely identify
|
||||
// the container, and the runtime should leverage this to ensure correct
|
||||
// operation. The runtime may also use this information to improve UX, such
|
||||
// as by constructing a readable name.
|
||||
optional ContainerMetadata metadata = 1 ;
|
||||
// Image to use.
|
||||
optional ImageSpec image = 2;
|
||||
// Command to execute (i.e., entrypoint for docker)
|
||||
|
@ -491,7 +499,7 @@ message ContainerFilter {
|
|||
optional string name = 1;
|
||||
// ID of the container.
|
||||
optional string id = 2;
|
||||
// State of the contianer.
|
||||
// State of the container.
|
||||
optional ContainerState state = 3;
|
||||
// The id of the pod sandbox
|
||||
optional string pod_sandbox_id = 4;
|
||||
|
@ -511,8 +519,8 @@ message Container {
|
|||
// The ID of the container, used by the container runtime to identify
|
||||
// a container.
|
||||
optional string id = 1;
|
||||
// The name of the container
|
||||
optional string name = 2;
|
||||
// The metadata of the container.
|
||||
optional ContainerMetadata metadata = 2;
|
||||
// The spec of the image
|
||||
optional ImageSpec image = 3;
|
||||
// Reference to the image in use. For most runtimes, this should be an
|
||||
|
@ -522,6 +530,9 @@ message Container {
|
|||
optional ContainerState state = 5;
|
||||
// Labels are key value pairs that may be used to scope and select individual resources.
|
||||
map<string, string> labels = 6;
|
||||
// Annotations is an unstructured key value map that may be set by external
|
||||
// tools to store and retrieve arbitrary metadata.
|
||||
map<string, string> annotations = 7;
|
||||
}
|
||||
|
||||
message ListContainersResponse {
|
||||
|
@ -538,8 +549,8 @@ message ContainerStatusRequest {
|
|||
message ContainerStatus {
|
||||
// ID of the container.
|
||||
optional string id = 1;
|
||||
// Name of the container.
|
||||
optional string name = 2;
|
||||
// Metadata of the container.
|
||||
optional ContainerMetadata metadata = 2;
|
||||
// Status of the container.
|
||||
optional ContainerState state = 3;
|
||||
// Creation time of the container.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue