sensu-plugins-kubernetes
sensu-plugins-kubernetes copied to clipboard
Says everything is OK if service has no pods.
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.
I would agree the current behavior is odd