Remove Service kind of ResourceExport when no available Pod Endpoints #4055
Labels
area/multi-cluster
Issues or PRs related to multi cluster.
kind/bug
Categorizes issue or PR as related to a bug.
Describe the bug
Since 1.7, Antrea multi-cluster Service's Endpoints have been changed to exported Service's ClusterIP, ClusterIP is relatively stable, usually it's no need to update Service kind of ResourceExport. But there is a corner case when there is no Pod Endpoints for exported Service, mc-controller should remove the Service kind of ResourceExport from leader cluster, so it won't be imported by other clusters.
To Reproduce
Expected
delete existing Service kind of ResourceExport.
Actual behavior
Service Export controller doesn't watch Endpoint events now, so it doesn't take any action when there is Endpoint change.
Versions:
v1.7
The text was updated successfully, but these errors were encountered: