Skip to content

Commit

Permalink
Pod: Output deletion timestamp in Icinga state reason
Browse files Browse the repository at this point in the history
  • Loading branch information
lippserd committed Aug 16, 2024
1 parent 3b1742d commit a09a2e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/schema/v1/pod.go
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ func (p *Pod) getIcingaState(pod *kcorev1.Pod) (IcingaState, string) {
return Unknown, ""
}
// TODO(el): Return Critical if pod.DeletionTimestamp + pod.DeletionGracePeriodSeconds > now.
return Ok, fmt.Sprintf("Pod %s/%s is being deleted.", pod.Namespace, pod.Name)
return Ok, fmt.Sprintf("Pod %s/%s is being deleted at %s.", pod.Namespace, pod.Name, pod.DeletionTimestamp)
}

if PodIsEvicted(pod) {
Expand Down

0 comments on commit a09a2e5

Please sign in to comment.