Skip to content

Commit d43f3d1

Browse files
committed
Use k8s.object_ref
1 parent fcdb7ac commit d43f3d1

File tree

1 file changed

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

1 file changed

+2
-2
lines changed

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

Lines changed: 2 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-
pod,
214+
pod_ref,
215215
)) = &result
216216
{
217217
const TOO_MANY_REQUESTS_HTTP_CODE: u16 = StatusCode::TOO_MANY_REQUESTS.as_u16();
@@ -230,7 +230,7 @@ async fn report_result(
230230
{
231231
if error_message == EVICT_ERROR_MESSAGE {
232232
tracing::info!(
233-
%pod,
233+
k8s.object_ref = %pod_ref,
234234
error = %evict_pod_error,
235235
"Tried to evict Pod, but wasn't allowed to do so, as it would violate the Pod's disruption budget. Retrying later"
236236
);

0 commit comments

Comments
 (0)