This adds PodCompleted to the blacklistReason. Pods created by jobs get this as their status after successful completion.
Via this I found an edge case: If the text for a slack notification is undefined or empty, slack.send returns undefined (which is the case for Job pods). This results in some hard to trace errors. To avoid this case, I added a general default message, if none is given.
This adds
PodCompleted
to the blacklistReason. Pods created by jobs get this as their status after successful completion.Via this I found an edge case: If the text for a slack notification is undefined or empty,
slack.send
returnsundefined
(which is the case for Job pods). This results in some hard to trace errors. To avoid this case, I added a general default message, if none is given.Thanks for considering this PR.