Skip to content

Commit c765621

Browse files
committed
Add the pod to the warning message
1 parent d456d24 commit c765621

File tree

1 file changed

+4
-2
lines changed
  • rust/operator-binary/src/restart_controller

1 file changed

+4
-2
lines changed

rust/operator-binary/src/restart_controller/pod.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ async fn report_result(
211211
Error::EvictPod {
212212
source: evict_pod_error,
213213
},
214-
_,
214+
pod,
215215
)) = &result
216216
{
217217
const TOO_MANY_REQUESTS_HTTP_CODE: u16 = StatusCode::TOO_MANY_REQUESTS.as_u16();
@@ -221,9 +221,11 @@ async fn report_result(
221221
}) = evict_pod_error
222222
{
223223
tracing::info!(
224-
?evict_pod_error,
224+
%pod,
225+
error = %evict_pod_error,
225226
"Tried to evict Pod, but wasn't allowed to do so, as it would violate the Pod's disruption budget. Retrying later"
226227
);
228+
return;
227229
}
228230
}
229231

0 commit comments

Comments
 (0)