kuryr-kubernetes/kuryr_kubernetes/objects
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
..
__init__.py Add support for nested pods with Vlan trunk port 2017-01-18 16:57:32 +05:30
base.py K8s Services support: LBaaSSpecHandler 2017-02-03 15:05:45 +03:00
fields.py Change Pod annotations format to o.vo 2018-08-01 15:30:42 +02:00
lbaas.py Fix SG rules on targetPort update 2019-02-18 10:05:44 +00:00
route.py OCP-Router: OCP-Route and Ingress LBaaS handlers 2018-06-15 14:47:48 +00:00
vif.py Add SR-IOV pod vif driver 2018-09-18 10:19:43 +03:00