kuryr-kubernetes/kuryr_kubernetes/tests/unit
Michał Dulko a1708e1c76 KuryrNetworkPolicy CRD
This commit is a huge refactoring of how we handle network policies. In
general:

* KuryrNetPolicy is replaced by KuryrNetworkPolicy. The upgrade path
  is handled in the constructor of KuryrNetworkPolicyHandler.
* New CRD has spec and status properties. spec is always populated by
  NetworkPolicyHandler. status is handled by KuryrNetworkPolicyHandler.
  This means that in order to trigger SG rules recalculation on Pod ang
  Service events, the NetworkPolicy is "bumped" with a dummy annotation.
* NetworkPolicyHandler injects finalizers onto NetworkPolicy and
  KuryrNetworkPolicy objects, so that objects cannot get removed before
  KuryrNetworkPolicyHandler won't process deletion correctly.

Depends-On: https://review.opendev.org/742209
Change-Id: Iafc982e590ada0cd9d82e922c103583e4304e9ce
2020-07-31 14:44:15 +02:00
..
cmd Use unittest.mock instead of third party mock 2020-04-18 11:53:51 -05:00
cni Pod annotations to KuryrPort CRD. 2020-07-29 23:50:17 +02:00
controller KuryrNetworkPolicy CRD 2020-07-31 14:44:15 +02:00
handlers Merge "Tweak exponential backoff" 2020-07-14 20:04:52 +00:00
__init__.py K8s and Neutron clients support 2016-10-03 16:07:03 +00:00
kuryr_fixtures.py Use unittest.mock instead of third party mock 2020-04-18 11:53:51 -05:00
test_clients.py Make _create_ports keys coherent with Neutron API. 2020-04-24 06:48:29 +00:00
test_k8s_client.py Use unittest.mock instead of third party mock 2020-04-18 11:53:51 -05:00
test_linux_net_utils.py Use unittest.mock instead of third party mock 2020-04-18 11:53:51 -05:00
test_object.py Ensure security_groups on LBaaSLoadBalancer defaults to empty list 2020-06-01 10:57:05 +00:00
test_os_vif_plug_noop.py Use unittest.mock instead of third party mock 2020-04-18 11:53:51 -05:00
test_os_vif_util.py Use unittest.mock instead of third party mock 2020-04-18 11:53:51 -05:00
test_utils.py Update loadbalancer CRD with service spec and rely on CRD 2020-07-30 21:56:43 +00:00
test_watcher.py Periodically fetch full list of watched resources 2020-06-30 12:31:32 +02:00