Commit b8781473 authored by Yassine TIJANI's avatar Yassine TIJANI

removing unnecessary shallow copy see #46703

parent c13d8917
...@@ -338,9 +338,7 @@ func (e *EndpointController) syncService(key string) error { ...@@ -338,9 +338,7 @@ func (e *EndpointController) syncService(key string) error {
readyEps := 0 readyEps := 0
notReadyEps := 0 notReadyEps := 0
for i := range pods { for _, pod := range pods {
// TODO: Do we need to copy here?
pod := &(*pods[i])
for i := range service.Spec.Ports { for i := range service.Spec.Ports {
servicePort := &service.Spec.Ports[i] servicePort := &service.Spec.Ports[i]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment