npc: Rename policy{Ingress,Egress} to policyType{Ingress,Egress}

This commit is contained in:
Martynas Pumputis authored and Martynas Pumputis committed 2018-07-24 10:06:23 +02:00
1 parent dee24aec65
commit 49224ec9f7
6 files changed
+27 -27

No files matched your search

+2 -2
View File
@@ -114,10 +114,10 @@ func (ss *selectorSet) addToMatching(user types.UID, labelMap map[string]string,
foundEgress := false
for _, s := range ss.entries {
if s.matches(labelMap) {
if ss.targetSelectorExist(s, ingressPolicy) {
if ss.targetSelectorExist(s, policyTypeIngress) {
foundIngress = true
}
if ss.targetSelectorExist(s, egressPolicy) {
if ss.targetSelectorExist(s, policyTypeEgress) {
foundEgress = true
}
if err := s.addEntry(user, entry, comment); err != nil {