Fix deletion datetime validation
@@ -27,7 +27,7 @@ def get_pod_state(event_type, event):
'event_type': event_type,
'labels': labels,
'phase': pod_phase,
- 'deletion_timestamp': deletion_timestamp,
+ 'deletion_timestamp': str(deletion_timestamp) if deletion_timestamp else None,
'pod_conditions': pod_conditions,
'container_statuses': container_statuses_by_name
})
