Skip to content

Commit

Permalink
!2400 set oomkilled in cri
Browse files Browse the repository at this point in the history
From: @jikai11 
Reviewed-by: @taotao-sauce 
Signed-off-by: @taotao-sauce
  • Loading branch information
openeuler-ci-bot authored and gitee-org committed Apr 2, 2024
2 parents 4732e0b + 5393ce7 commit 3de5469
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/daemon/common/cri/v1/v1_cri_helpers.cc
Original file line number Diff line number Diff line change
Expand Up @@ -506,6 +506,9 @@ void UpdateBaseStatusFromInspect(
} else { // Case 3
state = runtime::v1::CONTAINER_CREATED;
}
if (inspect->state->oom_killed == true) {
reason = "OOMKilled";
}
if (inspect->state->error != nullptr) {
message = inspect->state->error;
}
Expand Down

0 comments on commit 3de5469

Please sign in to comment.