-
k8s-merge-robot authored
Automatic merge from submit-queue federation service controller: fixing a bug so that existing services are created in newly registered clusters A defect on federation service controller. Steps to recreate: 1. boot federation control plane 2. create a service and then register a new cluster Root cause: the right sequence should be ``` servicesToUpdate = s.serviceCache.allServices() ``` then ``` s.updateAllServicesToCluster(servicesToUpdate, newCluster) ``` then ``` servicesToUpdate = s.updateDNSRecords(servicesToUpdate, newClusters) ``` Now the first two lines' sequence is on the contrary, so when updateDNSRecords return no error, the service will be removed from servicesToUpdate, and updateAllServicesToCluster get nothing to update. This PR make the call sequence correct. []()
3cc43eb0