removing unnecessary shallow copy see #46703

This commit is contained in:
Yassine TIJANI 2017-06-01 11:03:40 +02:00
parent c13d8917c2
commit b878147305

View File

@ -338,9 +338,7 @@ func (e *EndpointController) syncService(key string) error {
readyEps := 0
notReadyEps := 0
for i := range pods {
// TODO: Do we need to copy here?
pod := &(*pods[i])
for _, pod := range pods {
for i := range service.Spec.Ports {
servicePort := &service.Spec.Ports[i]