@@ -334,7 +334,7 @@ func (c *ServiceImportController) syncClientEndpointSlice() {
334
334
for _ , eps := range masterEndpointSlices {
335
335
if ! helper .HasAnnotation (eps .ObjectMeta , ServiceExportLabelKey ) {
336
336
klog .V (4 ).Infof ("ServiceEndpointSlice %s/%s has not been exported in master, ignore it" , namespace , eps .Name )
337
- return
337
+ continue
338
338
}
339
339
for _ , endpoint := range eps .Endpoints {
340
340
for _ , address := range endpoint .Addresses {
@@ -448,7 +448,7 @@ func (c *ServiceImportController) syncClientServiceImport() {
448
448
for _ , eps := range masterEndpointSlices {
449
449
if ! helper .HasAnnotation (eps .ObjectMeta , ServiceExportLabelKey ) {
450
450
klog .V (4 ).Infof ("ServiceEndpointSlice %s/%s has not been exported in master, ignore it" , namespace , eps .Name )
451
- return
451
+ continue
452
452
}
453
453
for _ , endpoint := range eps .Endpoints {
454
454
for _ , address := range endpoint .Addresses {
@@ -590,7 +590,7 @@ func clearEndpointSlice(slice *discoveryv1.EndpointSlice, disconnectedAddress []
590
590
newAddresses = append (newAddresses , address )
591
591
}
592
592
}
593
- // 只添加非空地址的endpoint
593
+ // Only add non-empty addresses from endpoints
594
594
if len (newAddresses ) > 0 {
595
595
endpoint .Addresses = newAddresses
596
596
newEndpoints = append (newEndpoints , endpoint )
0 commit comments