mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-13 22:05:59 +00:00
removing unnecessary shallow copy see #46703
This commit is contained in:
parent
c13d8917c2
commit
b878147305
@ -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]
|
||||
|
Loading…
Reference in New Issue
Block a user