npc: Add policyType to selectorSpec

This allows us to distinguish between ingress and egress
dst selectors (required when managing entries in default-allow
ipsets).
This commit is contained in:
Martynas Pumputis authored and Martynas Pumputis committed 2018-07-24 10:06:23 +02:00
1 parent 29ec43bdc8
commit d474c1c26d
6 files changed
+84 -49

No files matched your search

+1
View File
@@ -236,6 +236,7 @@ func TestDefaultAllow(t *testing.T) {
Status: coreapi.PodStatus{PodIP: barPodIP}}
podBarNoIP := &coreapi.Pod{ObjectMeta: podBar.ObjectMeta}
controller.AddPod(podBarNoIP)
controller.UpdatePod(podBarNoIP, podBar)
// Should add the bar pod to default-allow