blackducksoftware / perceivers

Kubernetes and openshift image discovery for OpsSight
Apache License 2.0
4 stars 7 forks source link

Investigate why deleted pods are being sent to pod-perceiver for processing #2

Closed rrati closed 6 years ago

rrati commented 6 years ago

Pods that have been deleted (via kubectl/oc delete) before the perceiver is created are still popping up in the informer for the pod-perceiver. It seems that pods that were deleted before creation of the pod-perceiver shouldn't appear to the perceiver.

rrati commented 6 years ago

This is happening because the perceptor hasn't been told about a pod being deleted. This happens most often when the perceiver pod itself is deleted and re-created.

rrati commented 6 years ago

The perceptor should be removing pods that don't exist anymore from its cache when the perceiver dumps all pods.