mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-27 21:26:03 +00:00
removing unnecessary shallow copy see #46703
This commit is contained in:
@@ -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]
|
||||
|
Reference in New Issue
Block a user