Skip to content

Commit

Permalink
fix: solve cluster delete sync
Browse files Browse the repository at this point in the history
  • Loading branch information
mnaser committed Nov 13, 2023
1 parent 476d1f7 commit 53048c8
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions magnum_cluster_api/proxy/manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def _sync_haproxy(self, proxied_clusters: list):
# Update checksum
self.checksum = hash(config)

def _sync_services(self, proxied_clusters: list, clusters: list):
def _sync_services(self, proxied_clusters: list, openstack_clusters: list):
labels = {
structs.ProxiedCluster.SERVICE_LABEL: "true",
}
Expand All @@ -81,7 +81,10 @@ def _sync_services(self, proxied_clusters: list, clusters: list):
)

# Generate list of all cluster names
cluster_names = [cluster.name for cluster in clusters]
cluster_names = [
cluster.metadata["labels"]["cluster.x-k8s.io/cluster-name"]
for cluster in openstack_clusters
]

# Remove any services that are not supposed to be there
for service in services:
Expand Down

0 comments on commit 53048c8

Please sign in to comment.