def _sync_ingress_lb(self):
        lb_uuid_set = set(LoadbalancerKM.keys())
        ingress_uuid_set = set(IngressKM.keys())
        deleted_ingress_set = lb_uuid_set - ingress_uuid_set
        for uuid in deleted_ingress_set:
            lb = LoadbalancerKM.get(uuid)
            if not lb:
                continue
            if not lb.annotations:
                continue
            owner = None
            kind = None
            cluster = None
            for kvp in lb.annotations['key_value_pair'] or []:
                if kvp['key'] == 'cluster':
                    cluster = kvp['value']
                elif kvp['key'] == 'owner':
                    owner = kvp['value']
                elif kvp['key'] == 'kind':
                    kind = kvp['value']

                if cluster == vnc_kube_config.cluster_name() and \
                   owner == 'k8s' and \
                   kind == self._k8s_event_type:
                    self._create_ingress_event('delete', uuid, lb)
                    break
        return
 def _sync_ingress_lb(self):
     lb_uuid_list = list(LoadbalancerKM.keys())
     ingress_uuid_list = list(IngressKM.keys())
     for uuid in lb_uuid_list:
         if uuid in ingress_uuid_list:
             continue
         lb = LoadbalancerKM.get(uuid)
         if not lb:
             continue
         if not lb.annotations:
             continue
         for kvp in lb.annotations['key_value_pair'] or []:
             if kvp['key'] == 'owner' \
                and kvp['value'] == 'k8s':
                 self._create_ingress_event('delete', uuid, lb)
                 break
     return
 def _sync_ingress_lb(self):
     lb_uuid_set = set(LoadbalancerKM.keys())
     ingress_uuid_set = set(IngressKM.keys())
     deleted_ingress_set = lb_uuid_set - ingress_uuid_set
     for uuid in deleted_ingress_set:
         lb = LoadbalancerKM.get(uuid)
         if not lb:
             continue
         if not lb.annotations:
             continue
         owner = None
         kind = None
         for kvp in lb.annotations['key_value_pair'] or []:
             if kvp['key'] == 'owner':
                 owner = kvp['value']
             elif kvp['key'] == 'kind':
                 kind = kvp['value']
             if owner == 'k8s' and kind == self._k8s_event_type:
                 self._create_ingress_event('delete', uuid, lb)
                 break
     return