zegl / kube-score

Kubernetes object analysis with recommendations for improved reliability and security. kube-score actively prevents downtime and bugs in your Kubernetes YAML and Charts. Static code analysis for Kubernetes.
https://kube-score.com
MIT License
2.78k stars 178 forks source link

score/networkpolicy: handle empty podSelector properly in the pod-has-networkpolicy test #294

Closed zegl closed 4 years ago

zegl commented 4 years ago

This is done by adopting the Kubernetes-provided metav1.LabelSelector, as is already used by the networkpolicy-targets-pod test.

RELNOTE: Support empty podSelectors in the "Pod has NetworkPolicy" test

This fixes #293

zegl commented 4 years ago

bors r+

bors[bot] commented 4 years ago

Build succeeded: