sensu-plugins-kubernetes icon indicating copy to clipboard operation
sensu-plugins-kubernetes copied to clipboard

Says everything is OK if service has no pods.

Open justinhammar opened this issue 9 years ago • 1 comments

I've been testing check-kube-service-available.rb and I've noticed that if I delete a deployment or replication controller so that all the pods of a service die and never come back up, it'll detect that the pods are not ready while they are terminating, but as soon as they are fully gone, it'll say that everything is good again.

Based upon line 79 (next if pod.nil?), this seems to be the desired behavior. However, I don't see why this is the case. If one of my services doesn't have any pods, I want it to alert me of this fact, not tell me that everything OK once again.

justinhammar avatar Aug 04 '16 17:08 justinhammar

I would agree the current behavior is odd

sstarcher avatar Aug 07 '16 17:08 sstarcher