Skip to content

Commit

Permalink
cravall#102:checking the deletionTimestamp property of the pod when c…
Browse files Browse the repository at this point in the history
…hecking pod health.
  • Loading branch information
danielloczi committed Apr 24, 2019
1 parent f58a92f commit 857d7bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ var workloop = function workloop() {
//Lets remove any pods that aren't running or haven't been assigned an IP address yet
for (var i = pods.length - 1; i >= 0; i--) {
var pod = pods[i];
if (pod.status.phase !== 'Running' || !pod.status.podIP) {
if (pod.status.phase !== 'Running' || pod.metadata.deletionTimestamp || !pod.status.podIP) {
pods.splice(i, 1);
}
}
Expand Down

0 comments on commit 857d7bc

Please sign in to comment.