Merge pull request #112977 from mimowo/oomkilled-standardization

Documentation for the CRI API reason field to standardize the field for containers terminated by OOM killer
This commit is contained in:
Kubernetes Prow Robot 2023-02-21 13:15:58 -08:00 committed by GitHub
commit 2d88d2d993
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 0 deletions

View File

@ -5665,6 +5665,7 @@ type ContainerStatus struct {
// image ID
ImageRef string `protobuf:"bytes,9,opt,name=image_ref,json=imageRef,proto3" json:"image_ref,omitempty"`
// Brief CamelCase string explaining why container is in its current state.
// Must be set to "OOMKilled" for containers terminated by cgroup-based Out-of-Memory killer.
Reason string `protobuf:"bytes,10,opt,name=reason,proto3" json:"reason,omitempty"`
// Human-readable message indicating details about why container is in its
// current state.

View File

@ -1211,6 +1211,7 @@ message ContainerStatus {
// image ID
string image_ref = 9;
// Brief CamelCase string explaining why container is in its current state.
// Must be set to "OOMKilled" for containers terminated by cgroup-based Out-of-Memory killer.
string reason = 10;
// Human-readable message indicating details about why container is in its
// current state.