kuryr-kubernetes/kuryr_kubernetes
Maysa Macedo 9c2fcbc3e3 Fix SG rules on targetPort update
After applying a Network Policy and updating an existent Service so that
all 'targetPorts' are allowed by the policy, the SG rules are not being
created with the required 'remote_ip_prefix'. Also, when the service is
again updated with a 'targetPort' that is not allowed by the policy the
respective SG rule is not deleted.
This commit fixes the issue by associating 'targetPort' field to the 
'LBaaSPortSpec' versioned object, which allows Kuryr to accounts for
changes in not only 'name', 'port' and 'protocol' Kubernetes services'
fields, but also 'targetPorts'. In addition, the LBaaS SG from the
LBaaS state annotation is updated to match the SG stated in the
LBaaS spec annotation, which has the updated SG to be applied.

Closes-Bug: #1814920
Change-Id: Ifcdd1889a813c1eb078064facfb2ede83a179887
2019-02-18 10:05:44 +00:00
..
cmd Rename kuryr-status to kuryr-k8s-status 2018-11-20 15:28:57 +01:00
cni Merge "dict_object.keys() is not required for *in* operator" 2018-12-24 10:32:57 +00:00
controller Fix SG rules on targetPort update 2019-02-18 10:05:44 +00:00
handlers Add quota readiness check to controller 2018-11-21 10:11:55 +00:00
objects Fix SG rules on targetPort update 2019-02-18 10:05:44 +00:00
platform OCP-Router: Fix path route to support subpath 2018-07-23 18:06:36 +03:00
tests Fix SG rules on targetPort update 2019-02-18 10:05:44 +00:00
__init__.py Implement Guru meditation reports 2017-04-13 03:19:08 +00:00
clients.py Fix devstack deployment when ovn-provider is selected 2018-10-03 08:45:23 +02:00
config.py Merge "Removing lbaasv2 related code" 2019-01-23 00:13:24 +00:00
constants.py Update CRD when NP has namespaceSelectors 2019-01-08 20:22:02 +00:00
exceptions.py Implement NPWG multi-vif driver 2018-08-09 17:31:21 +08:00
k8s_client.py Support network policy update 2018-11-29 08:32:51 +01:00
linux_net_utils.py Remove log translations 2017-03-28 15:13:49 +08:00
opts.py Update CRD when NP has podSelectors 2019-01-02 22:14:44 +00:00
os_vif_plug_noop.py Add SR-IOV pod vif driver 2018-09-18 10:19:43 +03:00
os_vif_util.py Add SR-IOV pod vif driver 2018-09-18 10:19:43 +03:00
utils.py Ensure NP changes are applied to services 2019-01-24 13:26:47 +01:00
version.py Add kuryr-status utility for upgrade-checkers 2018-10-03 15:09:53 +02:00
watcher.py Add quota readiness check to controller 2018-11-21 10:11:55 +00:00