go.mod: update cri-api to v1.28.0-beta.0
Required to support upcoming Kubernetes (v1.28) features. Signed-off-by: Markus Lehtonen <markus.lehtonen@intel.com>
This commit is contained in:
committed by
Markus Lehtonen
parent
6eb90a63e0
commit
850b2e1bf3
1928
vendor/k8s.io/cri-api/pkg/apis/runtime/v1/api.pb.go
generated
vendored
1928
vendor/k8s.io/cri-api/pkg/apis/runtime/v1/api.pb.go
generated
vendored
File diff suppressed because it is too large
Load Diff
55
vendor/k8s.io/cri-api/pkg/apis/runtime/v1/api.proto
generated
vendored
55
vendor/k8s.io/cri-api/pkg/apis/runtime/v1/api.proto
generated
vendored
@@ -131,6 +131,15 @@ service RuntimeService {
|
||||
|
||||
// ListPodSandboxMetrics gets pod sandbox metrics from CRI Runtime
|
||||
rpc ListPodSandboxMetrics(ListPodSandboxMetricsRequest) returns (ListPodSandboxMetricsResponse) {}
|
||||
|
||||
// RuntimeConfig returns configuration information of the runtime.
|
||||
// A couple of notes:
|
||||
// - The RuntimeConfigRequest object is not to be confused with the contents of UpdateRuntimeConfigRequest.
|
||||
// The former is for having runtime tell Kubelet what to do, the latter vice versa.
|
||||
// - It is the expectation of the Kubelet that these fields are static for the lifecycle of the Kubelet.
|
||||
// The Kubelet will not re-request the RuntimeConfiguration after startup, and CRI implementations should
|
||||
// avoid updating them without a full node reboot.
|
||||
rpc RuntimeConfig(RuntimeConfigRequest) returns (RuntimeConfigResponse) {}
|
||||
}
|
||||
|
||||
// ImageService defines the public APIs for managing images.
|
||||
@@ -199,7 +208,7 @@ message PortMapping {
|
||||
}
|
||||
|
||||
enum MountPropagation {
|
||||
// No mount propagation ("private" in Linux terminology).
|
||||
// No mount propagation ("rprivate" in Linux terminology).
|
||||
PROPAGATION_PRIVATE = 0;
|
||||
// Mounts get propagated from the host to the container ("rslave" in Linux).
|
||||
PROPAGATION_HOST_TO_CONTAINER = 1;
|
||||
@@ -770,6 +779,9 @@ message ImageSpec {
|
||||
// ImageSpec Annotations can be used to help the runtime target specific
|
||||
// images in multi-arch images.
|
||||
map<string, string> annotations = 2;
|
||||
// The container image reference specified by the user (e.g. image[:tag] or digest).
|
||||
// Only set if available within the RPC context.
|
||||
string user_specified_image = 18;
|
||||
}
|
||||
|
||||
message KeyValue {
|
||||
@@ -1627,6 +1639,8 @@ message ContainerStats {
|
||||
MemoryUsage memory = 3;
|
||||
// Usage of the writable layer.
|
||||
FilesystemUsage writable_layer = 4;
|
||||
// Swap usage gathered from the container.
|
||||
SwapUsage swap = 5;
|
||||
}
|
||||
|
||||
// WindowsContainerStats provides the resource usage statistics for a container specific for Windows
|
||||
@@ -1681,16 +1695,27 @@ message MemoryUsage {
|
||||
UInt64Value major_page_faults = 7;
|
||||
}
|
||||
|
||||
message SwapUsage {
|
||||
// Timestamp in nanoseconds at which the information were collected. Must be > 0.
|
||||
int64 timestamp = 1;
|
||||
// Available swap for use. This is defined as the swap limit - swapUsageBytes.
|
||||
UInt64Value swap_available_bytes = 2;
|
||||
// Total memory in use. This includes all memory regardless of when it was accessed.
|
||||
UInt64Value swap_usage_bytes = 3;
|
||||
}
|
||||
|
||||
// WindowsMemoryUsage provides the memory usage information specific to Windows
|
||||
message WindowsMemoryUsage {
|
||||
// Timestamp in nanoseconds at which the information were collected. Must be > 0.
|
||||
int64 timestamp = 1;
|
||||
// The amount of working set memory in bytes.
|
||||
UInt64Value working_set_bytes = 2;
|
||||
// Available memory for use. This is defined as the memory limit - workingSetBytes.
|
||||
// Available memory for use. This is defined as the memory limit - commit_memory_bytes.
|
||||
UInt64Value available_bytes = 3;
|
||||
// Cumulative number of page faults.
|
||||
UInt64Value page_faults = 4;
|
||||
// Total commit memory in use. Commit memory is total of physical and virtual memory in use.
|
||||
UInt64Value commit_memory_bytes = 5;
|
||||
}
|
||||
|
||||
message ReopenContainerLogRequest {
|
||||
@@ -1801,3 +1826,29 @@ enum MetricType {
|
||||
COUNTER = 0;
|
||||
GAUGE = 1;
|
||||
}
|
||||
|
||||
message RuntimeConfigRequest {}
|
||||
|
||||
message RuntimeConfigResponse {
|
||||
// Configuration information for Linux-based runtimes. This field contains
|
||||
// global runtime configuration options that are not specific to runtime
|
||||
// handlers.
|
||||
LinuxRuntimeConfiguration linux = 1;
|
||||
}
|
||||
|
||||
message LinuxRuntimeConfiguration {
|
||||
// Cgroup driver to use
|
||||
// Note: this field should not change for the lifecycle of the Kubelet,
|
||||
// or while there are running containers.
|
||||
// The Kubelet will not re-request this after startup, and will construct the cgroup
|
||||
// hierarchy assuming it is static.
|
||||
// If the runtime wishes to change this value, it must be accompanied by removal of
|
||||
// all pods, and a restart of the Kubelet. The easiest way to do this is with a full node reboot.
|
||||
CgroupDriver cgroup_driver = 1;
|
||||
}
|
||||
|
||||
enum CgroupDriver {
|
||||
SYSTEMD = 0;
|
||||
CGROUPFS = 1;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user