• Yongkun Anfernee Gui's avatar
    Refactor HostIP predicate algorithm · 68c2c793
    Yongkun Anfernee Gui authored
    - Remove string decode logic. It's not really helping to find the
      conflict ports, and it's expensive to do encoding/decoding
    - Not to parse the container ports information in predicate meta, use
      straight []*v1.ContainerPort
    - Use better data structure to search port conflict based on ip
      addresses
    - Collect scattered source code into common place
    68c2c793
utils_test.go 1.9 KB