mirror of
https://github.com/openshift/installer.git
synced 2026-02-05 15:47:14 +01:00
Currently, the approach for removing OpenStack loadbalancers is to look for appropriate tag (i.e. openshiftClusterID=<cluster_id>) and then delete it. Issue with this approach is that no such tags are applied on the loadbalancer resources, and also there is no such tag in description field. Hence, deleteLoadBalancer function will give 0 results for existing loadbalancers, as they have no such tag either in tags nor on description. With this patch, deleteLoadBalancer has been refactored to get all the loadbalancers and filter out that resources which have ClusterID in description, so that they will be safely deleted.