diff --git a/backend/pkg/k8s/cilium-scanner.go b/backend/pkg/k8s/cilium-scanner.go index 6a761d9..e251de6 100644 --- a/backend/pkg/k8s/cilium-scanner.go +++ b/backend/pkg/k8s/cilium-scanner.go @@ -189,6 +189,9 @@ func determinePodCoverage(clientset *kubernetes.Clientset, nsName string, polici } for _, pod := range pods.Items { + if pod.Status.Phase != corev1.PodRunning { + continue + } podIdentifier := fmt.Sprintf("%s/%s", pod.Namespace, pod.Name) if _, exists := globallyProtectedPods[podIdentifier]; !exists { if !IsPodProtected(writer, clientset, pod, policies, hasDenyAll, globallyProtectedPods) {