mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-27 13:37:30 +00:00
Merge pull request #36338 from nikhiljindal/delCode
Automatic merge from submit-queue Deleting dead code from federation service controller
This commit is contained in:
commit
a0758f6767
@ -718,16 +718,6 @@ func (s *ServiceController) updateAllServicesToCluster(services []*cachedService
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (s *ServiceController) removeAllServicesFromCluster(services []*cachedService, clusterName string) {
|
|
||||||
client, ok := s.clusterCache.clientMap[clusterName]
|
|
||||||
if ok {
|
|
||||||
for _, cachedService := range services {
|
|
||||||
s.deleteClusterService(clusterName, cachedService, client.clientset)
|
|
||||||
}
|
|
||||||
glog.Infof("Synced all services to cluster %s", clusterName)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// updateDNSRecords updates all existing federation service DNS Records so that
|
// updateDNSRecords updates all existing federation service DNS Records so that
|
||||||
// they will match the list of cluster names provided.
|
// they will match the list of cluster names provided.
|
||||||
// Returns the list of services that couldn't be updated.
|
// Returns the list of services that couldn't be updated.
|
||||||
|
Loading…
Reference in New Issue
Block a user