npc: Rename policy{Ingress,Egress} to policyType{Ingress,Egress}
This commit is contained in:
1 parent
dee24aec65
commit
49224ec9f7
6 files changed
+27
-27
No files matched your search
+2
-2
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user