kuryr-kubernetes/kuryr_kubernetes/tests/unit
Maysa Macedo 660bbf039a Ensure only affected services are updated on Pod/NetworkPolicy events
When Pods or Network Policies are created/updated/deleted, only the affected
service(s) should have the SG updated. Right now, all the services are updated.

This commit fixes the issue, on the Network Policy side, by checking if any of
the pods selected by a Service is also selected by a Network Policy, and if so
update the SG of that LBaaS.
And on the Pods side, by matching the Service selectors and Network Policy
selectors, when this NP got the pointed pods SG updated. If the selectors
match the LBaaS SG is updated.

Closes-Bug: 1818203
Change-Id: Id996651a7d03bc7621e57b46825ddfa9d98e48ce
2019-03-08 11:25:01 +00:00
..
cmd Add kuryr-status utility for upgrade-checkers 2018-10-03 15:09:53 +02:00
cni Remove way of running without kuryr-daemon 2019-02-04 12:53:00 +01:00
controller Ensure only affected services are updated on Pod/NetworkPolicy events 2019-03-08 11:25:01 +00:00
handlers Add quota readiness check to controller 2018-11-21 10:11:55 +00:00
platform OCP-Router: Fix path route to support subpath 2018-07-23 18:06:36 +03:00
__init__.py K8s and Neutron clients support 2016-10-03 16:07:03 +00:00
kuryr_fixtures.py lbaasv2: Fix for deployments missing the proxy 2018-04-13 16:47:39 +02:00
test_clients.py lbaasv2: Fix for deployments missing the proxy 2018-04-13 16:47:39 +02:00
test_k8s_client.py Fix Python 3 compatiblity in K8sClient.watch() 2018-09-12 14:10:23 -06:00
test_linux_net_utils.py Cleanup and enforce pep8 checks 2017-06-08 15:36:44 +03:00
test_object.py Fix SG rules on targetPort update 2019-02-18 10:05:44 +00:00
test_os_vif_plug_noop.py Add MACVLAN based interfaces for nested containers 2017-06-12 13:14:12 +01:00
test_os_vif_util.py Drop unnecessary import 2018-09-26 17:12:33 +02:00
test_utils.py Fix LBaaS sg rules update on deployment scale 2019-03-04 15:57:47 +00:00
test_watcher.py Add quota readiness check to controller 2018-11-21 10:11:55 +00:00